| | |
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 ansi anti apache approximation array assignment avogadro backend beginner binary bluetooth builtin calculator character cmd converter countpasswordentry curved customdialog dan08 decimals dictionaries dictionary dynamic error exe file float format function gnu graphics heads homework http ideas import inches input java leftmouse library line lines linux list lists loop module mouse mysqlquery number numbers numeric output parsing path phonebook plugin pointer prime programming progressbar py2exe pygame python random recursion redirect schedule scrolledtext software sqlite statictext statistics string strings sudokusolver sum table terminal text thread threading time tlapse trick tuple tutorial twoup ubuntu unicode urllib urllib2 variable wordgame write wxpython xlib






