Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - vertical tab in XML >Thread Next - Re: vertical tab in XML Re: vertical tab in XMLTo: NULL Date: 11/6/2007 6:00:00 PM
Andy Fish <ajfish@b...> wrote in
<Jz%Xi.93842$vI1.19034@f...>:
> I have an xml document that contains an element like this:
>
> <foo title="hello, world"/>
No you don't:
pavel@debian:~/dev/xml$ xmllint vtab.xml
vtab.xml:1: parser error : xmlParseCharRef: invalid xmlChar
value 11
<foo title="hello, world"/>
^
pavel@debian:~/dev/xml$
> 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.
Right on money.
> running the same transformation in .Net 1.1 or XMLSpy's
> built-in XSLT processor does not give an error.
Those are broken then. Complain about broken tools to the
tools' vendors (well, Microsoft seems to have fixed it, -
and good luck trying to get Altova to comply).
> 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.
It does.
2.2 Characters
[Definition: A parsed entity contains text, a sequence of
characters, which may represent markup or character data.]
[Definition: A character is an atomic unit of text as
specified by ISO/IEC 10646:2000 [ISO/IEC 10646]. Legal
characters are tab, carriage return, line feed, and the
legal characters of Unicode and ISO/IEC 10646. The
versions of these standards cited in A.1 Normative
References were current at the time this document was
prepared. New characters may be added to these standards
by amendments or new editions. Consequently, XML
processors MUST accept any character in the range
specified for Char. ]
As I read it, it doesn't speak about the default
serialisation, but about the very XML infoset.
> 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.
Still broken then.
> this is exactly the sort of problem I thought using
> standard XML libraries was supposed to protect me from.
It is. So complain to the people who wrote those tools.
--
"I can't help but wonder if you... don't know a hell of a
lot more about practically every subject than Solomon ever
did."
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
