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

Re: XTRE1160: The fragment identifier {62;n} is not a

Subject: Re: XTRE1160: The fragment identifier {62;n} is not a valid NCName
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Wed, 19 Nov 2008 18:32:44 +0000
Re:  XTRE1160: The fragment identifier {62;n} is not a
2008/11/19 Michael Kay <mike@xxxxxxxxxxxx>:
>> Thanks - do I take it from that then, that it's not really
>> feasible to pass the kind of dubious double-escaped markup
>> you get in RSS feeds to the URIResolver using the data: scheme?
>
> Not without doing some serious data cleansing first, I think.
>

Ok, as Dave mentioned it will have to be an extension.

The problem is, I suspect, that some feeds contain markup that has
been processed by some well-meaning person's method that takes a
string converts all ampersands to amp regardless of where they occur,
so correct serialised markup gets butchered, meaning tagsoup doesn't
have much chance of parsing it into something an XML parser won't
choke on.

There should be a golden rule of reading/writing xml - always use a
proper xml reader/writer and never, ever *ever* write a method that
takes xml-as-a-string and escapes characters - its always the wrong
thing to do.



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.