Re: [WebDNA] CDATA in XML = blank value
This WebDNA talk-list message is from 2015
It keeps the original formatting.
numero = 112542
interpreted = N
texte = 110Michael,Hi - came up against this problem recently.You need to use xslt - or else abandon xml parsing altogether and use other m=ethods - listwords / middle etc.I'm on a few days away right now but will post code when I can. I originall=y got the code from the talk list so it should be in the archives.- TomSent from my iPhone> On 3 Dec 2015, at 6:22 p.m., Michael Davis
wrote:>=20> This isn't working either. I am pulling the XML from a file with an inclu=de, so doing effectively the same thing using:>=20> [xmlparse var=3Dxml_var1][include file=3Dtest.xml&raw=3DT][/xmlparse]>=20> Thanks,> Mike>=20>=20>> On Dec 3, 2015, at 1:19 PM, Donovan Brooke wrote:>>=20>> [raw]>> >> =20>> >> >> >> >> [/raw]>>=20>>=20>>=20>>=20>>> On Dec 3, 2015, at 5:01 AM, Michael Davis wrote:>>>=20>>> Not sure if this has been discussed previously, but I have XML that has n=ode values encapsulated in CDATA containers, presumably to keep the XML vali=d. The values are typed in by hand on an input form and so are vulnerable t=o illegal characters. The WebDNA parser is ignoring the value of the node. I= can't get any value from the [value] context. Example of the offending XML=:>>>=20>>> >>> =20>>> >>> >>> >>> >>>=20>>> [xmlnodes][name]=3D[value]
[/xmlnodes]>>>=20>>> question=3D>>> answer=3D>>>=20>>>=20>>> Any suggestions?>>>=20>>>=20>>> Thanks,>>> Mike>>> --------------------------------------------------------- This message i=s sent to you because you are subscribed to the mailing list . To unsubscrib=e, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Report=ing: support@webdna.us>>=20>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us>=20> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us.
Associated Messages, from the most recent to the oldest:
110Michael,Hi - came up against this problem recently.You need to use xslt - or else abandon xml parsing altogether and use other m=ethods - listwords / middle etc.I'm on a few days away right now but will post code when I can. I originall=y got the code from the Talk List so it should be in the archives.- TomSent from my iPhone> On 3 Dec 2015, at 6:22 p.m., Michael Davis wrote:>=20> This isn't working either. I am pulling the XML from a file with an inclu=de, so doing effectively the same thing using:>=20> [xmlparse var=3Dxml_var1][include file=3Dtest.xml&raw=3DT][/xmlparse]>=20> Thanks,> Mike>=20>=20>> On Dec 3, 2015, at 1:19 PM, Donovan Brooke wrote:>>=20>> [raw]>> >> =20>> >> >> >> >> [/raw]>>=20>>=20>>=20>>=20>>> On Dec 3, 2015, at 5:01 AM, Michael Davis wrote:>>>=20>>> Not sure if this has been discussed previously, but I have XML that has n=ode values encapsulated in CDATA containers, presumably to keep the XML vali=d. The values are typed in by hand on an input form and so are vulnerable t=o illegal characters. The WebDNA parser is ignoring the value of the node. I= can't get any value from the [value] context. Example of the offending XML=:>>>=20>>> >>> =20>>> >>> >>> >>> >>>=20>>> [xmlnodes][name]=3D[value]
[/xmlnodes]>>>=20>>> question=3D>>> answer=3D>>>=20>>>=20>>> Any suggestions?>>>=20>>>=20>>> Thanks,>>> Mike>>> --------------------------------------------------------- This message i=s sent to you because you are subscribed to the mailing list . To unsubscrib=e, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Report=ing: support@webdna.us>>=20>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us>=20> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us.
Tom Duke
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:
We have Proof (1997)
PCS Frames (1997)
Quitting WebMerchant ? (1997)
WebTen? (1997)
FlushDatabase Suggestion (1998)
[WebDNA] To Commitdatabase or Not to Commitdatabase (2012)
Writing to PDF (2003)
[WebDNA] I need a newbie installation primer (2011)
WebCatalog 2.0 b 15 mac (1997)
SetCookie / GetCookie Problem.... (2004)
Sendmail truncation in Eudora Clients (1998)
server side includes & webcatalog (2000)
Repeating Fields (1997)
.. more on sliding discounts... (1997)
multiple databases (1997)
PCS Frames (1997)
delete fails (2000)
DON'T use old cart file! (1997)
Mime-Version in email header (1997)
Showif with an or (2003)