Parser Xml with Root empty
I need to do a parser of a xml file with root empty, but I have this error " Failed to load the document "error occurred while parsing element" line 2 column 2". Is there a solution?
<?xml version="1.0" standalone="yes"?>
How could that be a valid XML document ?
AFAIK, XML Documents Must Have a root element. Correct me if I'm wrong. "QDomDocument::setContent":http://qt-project.org/doc/qt-5/qdomdocument.html#setContent should give an error.
sorry for the replay but I was outsite.
This file with Java is a valid xml, I don't have a error when I do the parser. How I did a workarround before the parser, I changed <> in <root>
<root> <row> <scr_code>5</scr_code> <area_code>0</area_code> <area_type>0</area_type> </row>
I think that is a bug.
Now above is the valid XML. But I dont see a matching closing tag for <roor>. Is that a typo ?
Sorry, I correct roor in root
This shows your original XML is invalid. I don't think it is a bug.