Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


vertical tab in XML

From: "Andy Fish" <ajfish@----------.--.-->
To: NULL
Date: 11/6/2007 3:17:00 PM

hello,

I have an xml document that contains an element like this:

<foo title="hello, world&#xB;"/>

I can edit the file with visual studio or XML spy without any warnings. 
however, if I try to process it using .Net 2.0 XslCompiledTransform, I get 
the error:

System.ArgumentException: ' ', hexadecimal value 0x0B, is an invalid 
character.

running the same transformation in .Net 1.1 or XMLSpy's built-in XSLT 
processor does not give an error.

I have seen in the XML specification that character code 0B (vt) is not a 
valid XML character but I'm not quite clear on whether this means that a 
character reference to vt is also invalid.

either way surely something is wrong? - I created the file in .Net 2.0 using 
XmlDocument.Save() but I can't process it in .net 2.0. this is exactly the 
sort of problem I thought using standard XML libraries was supposed to 
protect me from.

Andy




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent