Re: XML and CDATA
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 58890
interpreted = N
texte = Sal, Stupid question... Where is XMLDOMCDATA in the WebDNA info?My 6.0 stuff only covers:[XMLNode][XMLNodes][XMLNodesAttributes][XMLParse][XSL][XSLT]I did notice that[xmlnodes][url][content][/url][/xmlnodes] does show the raw data. So if I want to continue with WebDNA I could grep the data toextract what I want. It kind of defeats the purpose of the other tools IMHO.- JimOn Jul 26, 2004, at 5:23 PM, Sal D'Anna wrote:> The XMLDOMCDATASection object inherits methods and properties from the> XMLDOMText object; therefore, you will find the XMLDOMCDATASection > object as> a child Node of an XMLDOMText object. The parent XMLDOMText object will> parse the contents of the CDATA section and return the full element > text> without the brackets.>> More info can be found here.> http://www.topxml.com/xml_dom/node_cdata_section.asp>> I haven't dug into NODES yet so can't help you there, but I think you > can> specify specific SELECT statements in XSLT that might be able to > select the> NODE_CDATA_SECTION.>>> Hope this helps,>>> Salvatore D'Anna> DotNetNuke Hosting>>>> -----Original Message-----> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf > Of Jim> Lanford> Sent: Monday, July 26, 2004 1:17 PM> To: WebDNA Talk> Subject: Re: XML and CDATA>> Put this link into firefox:> http://www.washingtonpost.com/wp-srv/technology/rssheadlines.xml> Notice that firefox will display the content but ignore any > formating>>> I want the parser to ignore the CDATA, but I do want it in a text> variable> so I can display it for a RSS feed.>> so to rephrase my question, how do I get to the stuff between
> and >> Every real-world example I have tried with the WebDNA XML tags does not> work all the way.>> I guessing that no one is using them much for RSS or Amazon.>> - Jim>>>>> On Jul 26, 2004, at 3:56 PM, Sal D'Anna wrote:>>> Just curious why you need the CDATA?>>>> Any text inside a CDATA section should be ignored by the parser.>>>> Salvatore D'Anna>> DotNetNuke Hosting>>>>>> -----Original Message----->> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf>> Of Jim>> Lanford>> Sent: Monday, July 26, 2004 9:20 AM>> To: WebDNA Talk>> Subject: XML and CDATA>>>> Hi,>> Has anyone found out how to grab XML CDATA?>> This is from an RSS feed with valid XML>>>>
>> >> >>>>
>>>> [xmlnodes]>> [showif [name]=title]title:[value]
>> [/showif]>> [/xmlnodes]>>>> >>>> In this case [value] is blank.>>>> [RemoveHTML][value][/RemoveHTML] does not work>>>> Any ideas?>>>> - Jim>>>>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://webdna.smithmicro.com/>> __________ NOD32 1.822 (20040726) Information __________>> This message was checked by NOD32 antivirus system.> http://www.nod32.com>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Sal, Stupid question... Where is XMLDOMCDATA in the WebDNA info?My 6.0 stuff only covers:[xmlnode][xmlnodes][xmlnodesattributes][xmlparse][xsl][xslt]I did notice that[xmlnodes][url][content][/url][/xmlnodes] does show the raw data. So if I want to continue with WebDNA I could grep the data toextract what I want. It kind of defeats the purpose of the other tools IMHO.- JimOn Jul 26, 2004, at 5:23 PM, Sal D'Anna wrote:> The XMLDOMCDATASection object inherits methods and properties from the> XMLDOMText object; therefore, you will find the XMLDOMCDATASection > object as> a child Node of an XMLDOMText object. The parent XMLDOMText object will> parse the contents of the CDATA section and return the full element > text> without the brackets.>> More info can be found here.> http://www.topxml.com/xml_dom/node_cdata_section.asp>> I haven't dug into NODES yet so can't help you there, but I think you > can> specify specific SELECT statements in XSLT that might be able to > select the> NODE_CDATA_SECTION.>>> Hope this helps,>>> Salvatore D'Anna> DotNetNuke Hosting>>>> -----Original Message-----> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf > Of Jim> Lanford> Sent: Monday, July 26, 2004 1:17 PM> To: WebDNA Talk> Subject: Re: XML and CDATA>> Put this link into firefox:> http://www.washingtonpost.com/wp-srv/technology/rssheadlines.xml> Notice that firefox will display the content but ignore any > formating>>> I want the parser to ignore the CDATA, but I do want it in a text> variable> so I can display it for a RSS feed.>> so to rephrase my question, how do I get to the stuff between > and >> Every real-world example I have tried with the WebDNA XML tags does not> work all the way.>> I guessing that no one is using them much for RSS or Amazon.>> - Jim>>>>> On Jul 26, 2004, at 3:56 PM, Sal D'Anna wrote:>>> Just curious why you need the CDATA?>>>> Any text inside a CDATA section should be ignored by the parser.>>>> Salvatore D'Anna>> DotNetNuke Hosting>>>>>> -----Original Message----->> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf>> Of Jim>> Lanford>> Sent: Monday, July 26, 2004 9:20 AM>> To: WebDNA Talk>> Subject: XML and CDATA>>>> Hi,>> Has anyone found out how to grab XML CDATA?>> This is from an RSS feed with valid XML>>>> >> >> >>>> >>>> [xmlnodes]>> [showif [name]=title]title:[value]
>> [/showif]>> [/xmlnodes]>>>> >>>> In this case [value] is blank.>>>> [removehtml][value][/RemoveHTML] does not work>>>> Any ideas?>>>> - Jim>>>>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://webdna.smithmicro.com/>> __________ NOD32 1.822 (20040726) Information __________>> This message was checked by NOD32 antivirus system.> http://www.nod32.com>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Jim Lanford
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
WebCat2 - Getting to the browser's username/password data (1997)
Number of files in a directory (2006)
WebCat2: Items xx to xx shown, etc. (1997)
[ShowNext] feature in 2.0 (1997)
Failing Email (2004)
Remove me from your list immeadiately (1999)
Just Testing (1997)
WebCat2 - [format thousands] (1997)
Reversed words (1997)
Date Help (2004)
iis 4.0 (1997)
Multiple prices (1997)
Hiding a subsection of text (2002)
pc (1997)
date and time stamp (2003)
[WebDNA] The Single-Vendor Commercial Open Source Business Model (2012)
formatting dates from a field ... (1997)
Forbidden CGI Error (1997)
[OT] Death Clock (2003)
The USArea® Network web site ... (1997)