Subject:Problem with XML parsing? Author:Nigel Lucas Date:15 Sep 2005 11:40 AM
Hiya,
I am converting a string from an external Db to XML using the HttpUtility.HtmlEncode in .Net.
One particular string failed validation in Stylus Studio, and on investigation I found the reason was because this string wasn't accepted...

On searching the net, I found it to be a valid XML string for the Ctrl+K (Vertical Tab) character.
The whole string works fine in Internet Explorer, so it seems to be a problem with Studio.
Any chance of a fix and any other special characters as I am relying on Studio to validate strings for me during testing, so this bug just wasted me some time as I tried to work out why it was invalid.
Subject:Problem with XML parsing? Author:Nigel Lucas Date:16 Sep 2005 04:07 AM
It isn't coming from an xml file and I don't know what standard Microsoft are using with their HTMLEncode function which is being used to convert a string to a xml 'safe' format.
Subject:Problem with XML parsing? Author:Tony Lavinio Date:16 Sep 2005 02:26 PM
Alberto is correct, unless the XML specifically states it is XML 1.1,
all XML parsers should reject it as malformed, otherwise they are in
violation of the spec. &xB; is not valid in XML 1.0, which is what the
file is if it doesn't say 1.1. And HTMLEncode produces safe HTML, not
safe XML. The rules are slightly different.