Re: [xsl] Illegal xml chars

Subject: Re: [xsl] Illegal xml chars
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Thu, 13 Dec 2007 16:51:19 +0000
On 13/12/2007, Waqar Ali <waqarali_pk@xxxxxxxxxxx> wrote:
> No matter what I do parser does not like this character and I have no option
> but to somehow take it out from the xml.

If the XML is arriving with those characters in it and the version set
to 1.0 then it's not really XML and should be fixed at source - reject
it and get someone to fix whatever's generating the XML.

I know that sounds like an "in a ideal world" situation but sometimes
they might thank you for flagging this sort of issue, rather than
forever working around the problem.

Imagine explaining the system to someone in 2 years time: "we receive
the XML, we strip out illegal XML characters then we parse the

Andrew Welch

Current Thread