| | |
Parsing xml file
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2005
Posts: 18
Reputation:
Solved Threads: 0
Hello!
I need some help...
I parsed an xml file using the minidom.parse method, but when i
printed the document object to the screen (using toxml() function), i noticed that the parser automatically replaced my " (inverted commas) chars into ' chars.
for example :
<Father_Tag>
<Son_Tag title=' "Son" '>
This is an "example
</Son_Tag>
</Father_Tag>
turned out to be :
<Father_Tag>
<Son_Tag title=" "Son" ">
This is an "example
</Son_Tag>
</Father_Tag>
as a result, the " replaced the inverted commas (") that i added.
this shit really messes up my program!
can anyone help me?
I need some help...
I parsed an xml file using the minidom.parse method, but when i
printed the document object to the screen (using toxml() function), i noticed that the parser automatically replaced my " (inverted commas) chars into ' chars.
for example :
<Father_Tag>
<Son_Tag title=' "Son" '>
This is an "example
</Son_Tag>
</Father_Tag>
turned out to be :
<Father_Tag>
<Son_Tag title=" "Son" ">
This is an "example
</Son_Tag>
</Father_Tag>
as a result, the " replaced the inverted commas (") that i added.
this shit really messes up my program!
can anyone help me?
![]() |
Similar Threads
- parsing conf file in c++ (C++)
- [urgent] HTML form => XML file (JSP)
- Eliminating Whitespace characters while parsing XML Files using DOM (Java)
- xml file parsing in c++ (C++)
- Need some help with parsing an XML file (PHP)
- problem reading xml file in c# (C#)
- parsing error (XML file-java-schema) (Java)
- Pass XML file contents to a hash table. (Java)
Other Threads in the Python Forum
- Previous Thread: A Pythonian Look at the Family Tree Conundrum
- Next Thread: need help comparing bits
| Thread Tools | Search this Thread |
Tag cloud for Python
accessdenied apache application argv beginner book change code color dictionary dynamic edit editing enter examples excel file filename float format ftp function gui homework import inches input java keyboard lapse library line lines linux list lists loop microphone mouse movingimageswithpygame mysql newb number numbers numeric output parameters parsing path port prime program programming projects py2exe pygame pyopengl pyqt python random recursion recursive redirect remote reverse rpg scrolledtext search server session simple smtp software sprite ssh statictext string strings syntax table tennis terminal text thread threading time tkinter tlapse trick tuple tutorial ubuntu unicode unit urllib urllib2 variable windows wordgame wxpython






