Modify node attributes in XML file while parsing
Abhishek Kane <[email protected]> Wed, 16 Sep 2009 21:03:48 +0530
| Newsgroups | gmane.comp.python.xml |
|---|---|
| Message-ID | <[email protected]> |
--===============2057570182== Content-Type: multipart/alternative; boundary=00504502ceee0a329d0473b3a0c3 --00504502ceee0a329d0473b3a0c3 Content-Type: text/plain; charset=ISO-8859-1 Hi Guys, 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? Thanks, Abhishek --00504502ceee0a329d0473b3a0c3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Guys,<br><br>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 r= ead node attributes; but when I modify them using setAttribute, the local c= opy of that node gets changed.<br> Is there any way to directly modify the node attributes in XML file or shal= l I just create another XML file where I will create nodes as I go through = the nodes in old XML file?<br><br>Thanks,<br>Abhishek <br> --00504502ceee0a329d0473b3a0c3-- --===============2057570182== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ XML-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/xml-sig --===============2057570182==--