[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: 0x19 is not a legal XML character

Subject: Re: 0x19 is not a legal XML character
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Thu, 28 Jun 2007 11:33:32 +0100
Re:  0x19 is not a legal XML character
On 6/28/07, Abel Braaksma <abel.online@xxxxxxxxx> wrote:

this may work and will remove all offending U+0019 chars.

The "offending" u+0019 characters could well be good content that's being written/read in the wrong encoding.

Simply stripping them out probably isn't the best approach - you need
to work out why they're there, what put them there and then fix that.
Patching it up afterwards is never a good idea.

It reminds me of when I came to my last project and discovered things
like this in the XML:

<foo>some test with backslashes before \"quotes\" everywhere</foo>

It turns out the quotes were causing problems later in the processing
(in a regex I think), so they thought they should "escape" them in the
XML before they got there...

Imagine explaining your process to someone else in a years time -
"this step is where we remove the u+0019 characters".


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.