non-well-formed

Finding a node (or close to it) using XPath in non well-formed HTML

I'm using XPath to locate a node (or something close to it) in a template that has non-well-formed HTML about 10 levels deep. (No I didn't write this HTML...but I've been tasked to dig through it.) I seem to be able to retrieve an XPath to the element in question using the XPartner add-on for Firefox; however it only gives me the loc...

"Not Well-Formed" Errors in XML file after FTP

Using WS_FTP Professional, I have a backup process that runs every night. WS_FTP basically sets up the process to FTP to a remote server through windows scheduler. Specifically, It sends an XML file that is approximately 2.5 megs to a server for download. I check that the XML file is well-formed before the FTP and it always is. The p...

python xml error

hello . I'm new to xml. I'm trying to parse an xml file to extract data from, but it shows the error below message when I call doc=minidom.parse('D:\\CONFIGRATION.xml') ... xml.parsers.expat.ExpatError:not well-formed (invalid token): line 474, column 15 473 <Extras> 474 <extra Type> 475 jpg 476 </extra Type> 477 <extr...

Java saying XML Document Not Well Formed

Hey all. Java's XML parser seems to be thinking that my XML document is not well formed following the root element, but I've validated it with several tools and they all disagree. It's probably an error in my code rather than in the document itself, I'd really appreciate any help you all could offer me. Here is my Java method: private ...

Replacing characters in a non well-formed XML body

In a (Java) code that I'm working on, I sometimes deal with a non well-formed XML (represented as a Java String), such as: <root> <foo> bar & baz < quux </foo> </root> Since this XML will eventually need to be unmarshalled (using JAXB), obviously this XML as is will throw exception upon unmarshalling. What's the best way to r...