I’m getting a lot of parsing errors from python related to my xml file. I read elsewhere on stackoverflow that I should validate the xml file first.
I can’t understand why this xml will not validate:
<xml><hive name="myprojectname">
XML validator says this
Error: Can not find declaration of element ‘xml’.
Error Position: <xml><hive name="myprojectname">
This:
doesn’t validate in http://www.validome.org/xml/validate/, because first you have to check “Well-Formedness only” option there.
Second, it have to follow XML rules, http://en.wikipedia.org/wiki/XML#Well-formedness_and_error-handling. So this should look: