| | |
Parsing xml file
![]() |
•
•
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 |
abrupt accessdenied ansi anti apache application approximation argv array assignment backend beginner binary bluetooth builtin calculator change character converter countpasswordentry curved customdialog dan08 dictionary dynamic edit exe file float format function graphics heads homework ideas inches input java keyboard lapse library line lines linux list lists loop microphone mouse movingimageswithpygame mysqlquery newb number numbers numeric output parameters parsing path phonebook pointer prime programming progressbar py2exe pygame pyopengl python random recursion redirect remote reverse scrolledtext session software sprite statictext statistics string strings syntax terminal text thread threading time tlapse tuple twoup ubuntu unicode unit urllib urllib2 variable wordgame write wxpython xlib






