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

Re: Error and Fatal Error

  • From: Chris Burdess <dog@bluezoo.org>
  • To: Stephen D Green <stephengreenubl@gmail.com>
  • Date: Mon, 18 Jul 2011 07:20:34 +0100

Re:  Error and Fatal Error
Stephen D Green wrote:

> 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'.

I'm not sure exactly what you mean by "AJAX/mainstream tools/controls" here, but if it is data intended as markup as opposed to text, then it is up to you to parse it and correctly separate it from the textual content. You will then generate correctly formed XML from the result. It's no more reasonable to just throw this mishmash directly at an XML processor and expect it all to "just work" than it would be to throw an MPEG4 file into it and expect the processor to come out with all the subtitles arranged by scene.


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


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
 

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.