Thread
:
Python help please. Trying to write XML data
View Single Post
Munk
2009-03-08 , 17:57
Posts: 229 | Thanked: 108 times | Joined on Oct 2007 @ Sacramento, California
#
4
epage, thank you for the response. I see what you are saying but I also believe that a simple "search and replace" kind of mentality would be built into a simple command. Something along the lines of:
ElementTree.updateNode('blah', 'new blah')
Otherwise, how would one recommend going about a file based find and replace command? So, open file X, replace the occurrence of "<somefield>blah</somefield>", overwrite the file. In other words, treat the .xml file as just a text file, update it in that mentality.
Quote & Reply
|
Munk
View Public Profile
Send a private message to Munk
Visit Munk's homepage!
Find all posts by Munk