QDomDocument is telling you that the input is malformed because parentheses are not permitted in an XML element Name: http://www.w3.org/TR/REC-xml/#sec-starttags
QDomDocument is telling you that the input is malformed because parentheses are not permitted in an XML element Name: http://www.w3.org/TR/REC-xml/#sec-starttags
Well it looks like my manual does not mention that. And it's strange that the QDomDocument allows it when saving the doc to xml files.
So what should I do if the users insist putting parentheses in the element names?
Last edited by hind; 3rd August 2014 at 08:50. Reason: reformatted to look better
Convert them to another set of characters before passing the data to QDomDocument.
Or train your users to correctly specify XML element names. Refuse to permit anything except allowed characters in XML strings and put up an error dialog if the user types a character that isn't allowed by the standard.
Bookmarks