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

Re: Error and Fatal Error

  • From: Stephen D Green <stephengreenubl@gmail.com>
  • To: Chris Burdess <dog@bluezoo.org>
  • Date: Sun, 17 Jul 2011 21:49:23 +0100

Re:  Error and Fatal Error
By the way, I don't know why the tools used don't do the escaping
but might be that they weren't expecting the input data to end up
in XML (which would be ironic since they are based on Ajax).
I think the tools used are simply (and typically for .NET) an AJAX
grid (probably a Telerik RadGrid) passing data to a .NET dataset
on the server side. The XML might therefore be to some extent
determined by a combination of the user's input (illegal characters
perhaps included, like '&' and '<' though it is mainly '&' causing
problems) and the AJAX/mainstream tools/controls. Then the
XML is sent to the parser. We could try first parsing it as text to
catch the illegal characters but this way will be XML-ignorant
and we prefer to use a tool which 'understands' XML so we can
concentrate the coding efforts on the element content and abstract
away the angle brackets. It really should all 'just'work'.
Stephen D Green

On 17 July 2011 20:30, Stephen D Green <stephengreenubl@gmail.com> wrote:

On 17 July 2011 19:34, Chris Burdess <dog@bluezoo.org> wrote:
So you're creating not-well-formed XML yourself and then complaining that XML parsers don't process it?

It's a little hard to have sympathy with your viewpoint in that case. Why don't you just create well-formed XML instead?

because the XML content includes data input into textbox controls, etc
in a webpage and we do not want to prevent users inputing '<' and '&'
Stephen D Green

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.