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

RE: ACCESSING SPECIFIC CDATA FIELD

Subject: RE: ACCESSING SPECIFIC CDATA FIELD
From: "Nick Fitzsimons" <nick@xxxxxxxxxxxxxx>
Date: Tue, 13 Dec 2005 18:01:05 -0000 (GMT)
msdn cdata accessing
>> > >        <etp id="200">
>> > >            <![CDATA[Trying accessing only this]]>
>> > >            <nvgs>
>>
>>   Maybe your parser makes a text node for "\n ", between the
>> 'etp' element and the CDATA section, and an other text node
>> for the cntent of the CDATA section itself.  I think it has
>> to merge all the text in 'etp' before the 'nvgs' element in
>> one single text node.
>
> I've heard of products that do that - especially if you supply the input
> as
> a DOM - but it's not conformant behaviour.
>
> Michael Kay
> http://www.saxonica.com/
>

The usual suspect:

"In most cases, the behavior of the MSXML processor conforms to white
space handling rules imposed by the XML and XSLT specifications.

"The following are exceptions.

"Adjacent text nodes are not treated as one node. Adjacent text nodes can
appear if:

"The user inserts them into the tree through the DOM API.

"CDATA sections border #PCDATA nodes."

... and more of the same, at:
<http://msdn.microsoft.com/library/en-us/xmlsdk/html/e8b00d48-e9f5-4a25-a650-71c284bb3f3a.asp>

-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/

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.