The Artima Developer Community
Sponsored Link

.NET Buzz Forum
The Myth of XML Purity?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Scott Hanselman

Posts: 1031
Nickname: glucopilot
Registered: Aug, 2003

Scott Hanselman is the Chief Architect at Corillian Corporation and the Microsoft RD for Oregon.
The Myth of XML Purity? Posted: Apr 8, 2004 10:39 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Scott Hanselman.
Original Post: The Myth of XML Purity?
Feed Title: Scott Hanselman's ComputerZen.com
Feed URL: http://radio-weblogs.com/0106747/rss.xml
Feed Description: Scott Hanselman's ComputerZen.com is a .NET/WebServices/XML Weblog. I offer details of obscurities (internals of ASP.NET, WebServices, XML, etc) and best practices from real world scenarios.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Scott Hanselman
Latest Posts From Scott Hanselman's ComputerZen.com

Advertisement

Here's a hypothetical.  Say there is an client I'm working with that needs to return Valid XML from their system.  They've given me XML Schemas and said they a representative of the XML returned.  Since Valid follows Well-Formed, sounds good.

Then someone mentions, "oh, well, we can't guarantee that there won't be some < or > or & in the element content.  But, that's no problem, right?"

I said, "Well, then technically you are not sending us XML.  If you can't escape (or CDATA) out the stray content with < >, then you're not even returning less-than/greater-than delimited files. What if I gave you content like this "123123324","2003-04-05","Scott ",Hans,"elman","Portland?"  We have to agree on some fundamentals here.  The XML 1.0 spec (and all tools based on it) is very specific." (They won't even CDATA the stuff)

The response? "Well, that's a purist's viewpoint."

I guess I got too mired in the Judeo-Christian Ethic of "Thou shalt not return malformed XML."

QUESTION: What level of Dante's Inferno would I be relegated to if I pre-process this XML-y (pronounced: 'smelly') file to make it well-formed?

Read: The Myth of XML Purity?

Topic: A SPOT Blog Previous Topic   Next Topic Topic: Technical Documentation: What is the difference between i.e. and e.g.?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use