jjoyce
1
Hi,
first time post 
I am parsing an xml file that has a hash in it and I am seeing the Parse() function fail.
It looks like the leading “7e” is the point of failure.
calling Parse() on this file fails:
<7ea94c240691311dc0916a2a91eb7c3db2c6f3e4>
This is my name
this one passes
This is my name
Any ideas of how I can work around this issue (can’t change the hash!).
Thanks,
Joe
Element names that begin with numbers are not valid XML. This is a handy tool for validating any XML you’re trying to parse: http://www.w3schools.com/xml/xml_validator.asp
One workaround would be to just prepend some static string to each hash when generating the XML.
Or, arguably, the more correct approach would be to not use the hash as an element name at all, but to do something like