ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-sig
xml-sig
Re: [XML-SIG] Modify node attributes in XML file while parsing
by Stefan Behnel other posts by this author
Sep 16 2009 10:20AM messages near this date
[XML-SIG] Modify node attributes in XML file while parsing | Re: [XML-SIG] Modify node attributes in XML file while parsing
& XSLT Abhishek Kane wrote:
>  I got a bit idea about parsing XML file from online search. I need to modify
>  node attributes in an XML file while I read it. I could read node
>  attributes; but when I modify them using setAttribute, the local copy of
>  that node gets changed.
>  Is there any way to directly modify the node attributes in XML file or shall
>  I just create another XML file where I will create nodes as I go through the
>  nodes in old XML file?

Could you explain a bit more about your intentions? What is the code doing?
I understand that the XML data is in a file that you parse, but where is
the data going afterwards? Do you use it in your program? Do you save it
back into a file?

Stefan
_______________________________________________
XML-SIG maillist  -  XML-SIG@[...].org
http://mail.python.org/mailman/listinfo/xml-sig
Thread:
Abhishek Kane
Stefan Behnel
Abhishek Kane
Josh English

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved