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 = 110 Michael, 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. - Tom Sent 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 to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] CDATA in XML = blank value (Tom Duke 2015)
  2. Re: [WebDNA] CDATA in XML = blank value (Michael Davis 2015)
  3. Re: [WebDNA] CDATA in XML = blank value (Michael Davis 2015)
  4. Re: [WebDNA] CDATA in XML = blank value (Donovan Brooke 2015)
  5. Re: [WebDNA] CDATA in XML = blank value (Stuart Tremain 2015)
  6. [WebDNA] CDATA in XML = blank value (Michael Davis 2015)
110 Michael, 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. - Tom Sent 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 to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug 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:

webcatalog 2.1.3 ACGI Weirdness? (1998) [WebDNA] What am I doing wrong with authenticate (2012) Using Plug-In while running 1.6.1 (1997) Quit revisited (1997) image magick (2003) Multi Actions (1999) Path of Events (1999) MacFinder -- a new WebDNA web site (1998) authenticate (2002) Force a search at the default.tmpl page? (1997) Not really WebCat (1997) Show first couple of lines. (2003) NEWBIE ? help with link (1998) Search returns all, not 20 (1997) What am I missing (1997) Beta 18 (1997) RE: Web*SSL and WebCatalog (1997) Re:Emailer and encryption (1997) FW: WebDNA-Talk searchable? (1997) Adding muliple sku + quantities (1999)