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

RE: If XML is too hard for a programmer, perhaps he'd b e

  • To: "Simon St.Laurent" <simonstl@s...>,<xml-dev@l...>
  • Subject: RE: If XML is too hard for a programmer, perhaps he'd b e better off as a crossing guard
  • From: "Joshua Allen" <joshuaa@m...>
  • Date: Mon, 31 Mar 2003 14:31:20 -0800
  • Thread-index: AcL3ue99GKQBmHH+Q4iVGDnnf3AuzQAGkJjg
  • Thread-topic: If XML is too hard for a programmer, perhaps he'd b e better off as a crossing guard

RE:  If XML is too hard for a programmer
> doesn't let me scream "IGNORE THAT CDATA SECTION MARKER AND PARSE THE
> DAMN CONTENT NORMALLY!"

The two are not interchangeable, I am sure you know.  Markup inside a
CDATA section is completely different from markup inline with the
document.


> I'm in the classically stupid position where the export is generating:
> 
> <root>
> ...
> <repeatingNode1><![CDATA[This is in <b>bold</b>, or at least it should
> be.]]></repeatingNode1>
> <repeatingNode2>content</repeatingNode2>
> ....
> </root>

What exactly is stupid about that?  Presumably the application that
generates and consumes that data expects a *text* node, and not xsd:any.
Are you saying that the export was dumb to demand text, or that the
application really wanted xsd:any and simply screwed up?

Even more importantly, do you *really* want your <b></b> tags to be
hanging out with no namespace?  What will you do when your "markup"
contains something like "<p><br>"?

I get confused when I see people who *insist* on treating HTML as if it
is "markup" rather than text, and then get predictably upset in the
myriad instances where this causes unnecessary pain.

> More creatively, there may also be times where the use of CDATA
sections
> is appropriate, so simply nuking all of them isn't the right answer

Yeah, exactly -- use CDATA (or escaped XML) when you want a text node.
That is actually a whole lot of cases.

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.