[WebDNA] XML parsing issue with cdata

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 109131
interpreted = N
texte = --00163662e5ea1318e204c0f23cae Content-Type: text/plain; charset=ISO-8859-1 Hi, has anybody run into the following xml parsing issue? The node: I can see the content I want in an xml file. in the CDATA abvoe - being the content of a tweet "RT @BoyTopi: I want to feel snow! Not the fake ones at Snow City." the value of the "text" node returns a blank. if I get a node attribute of "text" then I get a return name value of "#cdata-section" and no "value" How do I get to the CDATA information in the following example. Any ideas? Is there something I am missing? thanks. d. sample: xml tweets_locarea 206405518925905920 1338045885 803 Hesperia_WX 25 unknown US United States Of America 1 USCA0481 CA Hesperia sample parse --tweet: ---klass: tweets_locarea ---tweetId: 206405503587328000 ---date: 1338045881 ---text: ----#cdata-section: ------------------> the offending line ---sentiment: ---dma: 803 ---tweeter: ----screenName: HeyAbbie_ ----influence: 27 ----gender: female ----profileImageURL: -----#cdata-section: ------------------> the offending line ---location: ----countryCode: US ----country: United States Of America ----type: 1 ----id: USCA0638 ----state: CA ----name: Los Angeles --00163662e5ea1318e204c0f23cae Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, has anybody run into the following xml parsing issue?

The node: = =A0 <text><![CDATA[RT @BoyTopi: I want to feel snow! Not the fake = ones at Snow City.]]></text>
=A0
I can see the content I wan= t in an xml file. in the CDATA abvoe - being the content of a tweet "R= T @BoyTopi: I want to feel snow! Not the fake ones at Snow City."

the value of the "text" node returns a blank.

if I ge= t a node attribute of "text" then I get a return name value of &q= uot;#cdata-section" and no "value"

How do I get to th= e CDATA information in the following example.

Any ideas? Is there something I am missing?

thanks.

d.
sample: xml
<t=weets>  <twe=et>    <k=lass>tweets_locarea</klass>    <t=weetid>206405518925905920</tweetid>    <d=ate>1338045885</date>    <t=ext><!--[CDATA[HA:= Fair and Breezy and 50 F at Southern California Logisitics Airport, CA Win=ds are from the West at 20.7 gusting to 2 http://t.co/KqLrqbuk]]--></text>    <s=entiment>    <d=ma>803</dma<=/span>>    <t=weeter>      <screenname>Hesperia_WX</screenname>      <influence>25</influence>      <gender>unknown</gender>      <profileimageurl><=!--[CDATA[http://a0.twimg.com/profile_images/383407737/Offi=cial_SWAS_logo_normal.jpg]]--></profileimageurl>    </tw=eeter>    <l=ocation>      <countrycode>US</countrycode>      <country>United States Of America</<=span class=3D"end-tag">country>      <type>1</typ=e>      <id>USCA0481</id>      <state>CA</s=tate>      <name>Hesperia</name>    </lo=cation>  </sent=iment></twee=t>  <twe=et>

sample parse

--tweet:=20
=20 ---klass: tweets_locarea
=20 =20 =20 =20 ---tweetId: 206405503587328000
=20 =20 =20 =20 ---date: 1338045881
=20 =20 =20 =20 ---text:
=20 =20 =20 =20 ----#cdata-section: ------------------> the offending line
=20 =20 =20 ---sentiment:
=20 =20 =20 =20 ---dma: 803
=20 =20 =20 =20 ---tweeter:=20
=20 =20 =20 =20 ----screenName: HeyAbbie_
=20 =20 =20 ----influence: 27
=20 =20 =20 ----gender: female
=20 =20 =20 ----profileImageURL:
=20 =20 =20 -----#cdata-section: ------------------> the offending line
=20 =20 ---location:=20
=20 =20 =20 =20 ----countryCode: US
=20 =20 =20 ----country: United States Of America
=20 =20 =20 ----type: 1
=20 =20 =20 ----id: USCA0638
=20 =20 =20 ----state: CA
=20 =20 =20 ----name: Los Angeles

=A0

--00163662e5ea1318e204c0f23cae-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] XML parsing issue with cdata (David Bastedo 2012)
  2. Re: [WebDNA] XML parsing issue with cdata (David Bastedo 2012)
  3. Re: [WebDNA] XML parsing issue with cdata (Stuart Tremain 2012)
  4. Re: [WebDNA] XML parsing issue with cdata (David Bastedo 2012)
  5. Re: [WebDNA] XML parsing issue with cdata (Stuart Tremain 2012)
  6. Re: [WebDNA] XML parsing issue with cdata (Stuart Tremain 2012)
  7. Re: [WebDNA] XML parsing issue with cdata (David Bastedo 2012)
  8. Re: [WebDNA] XML parsing issue with cdata (David Bastedo 2012)
  9. Re: [WebDNA] XML parsing issue with cdata (David Bastedo 2012)
  10. Re: [WebDNA] XML parsing issue with cdata (Donovan Brooke 2012)
  11. Re: [WebDNA] XML parsing issue with cdata (D Brooke 2012)
  12. [WebDNA] XML parsing issue with cdata (David Bastedo 2012)
--00163662e5ea1318e204c0f23cae Content-Type: text/plain; charset=ISO-8859-1 Hi, has anybody run into the following xml parsing issue? The node: I can see the content I want in an xml file. in the CDATA abvoe - being the content of a tweet "RT @BoyTopi: I want to feel snow! Not the fake ones at Snow City." the value of the "text" node returns a blank. if I get a node attribute of "text" then I get a return name value of "#cdata-section" and no "value" How do I get to the CDATA information in the following example. Any ideas? Is there something I am missing? thanks. d. sample: xml tweets_locarea 206405518925905920 1338045885 803 Hesperia_WX 25 unknown US United States Of America 1 USCA0481 CA Hesperia sample parse --tweet: ---klass: tweets_locarea ---tweetId: 206405503587328000 ---date: 1338045881 ---text: ----#cdata-section: ------------------> the offending line ---sentiment: ---dma: 803 ---tweeter: ----screenName: HeyAbbie_ ----influence: 27 ----gender: female ----profileImageURL: -----#cdata-section: ------------------> the offending line ---location: ----countryCode: US ----country: United States Of America ----type: 1 ----id: USCA0638 ----state: CA ----name: Los Angeles --00163662e5ea1318e204c0f23cae Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, has anybody run into the following xml parsing issue?

The node: = =A0 <text><![CDATA[RT @BoyTopi: I want to feel snow! Not the fake = ones at Snow City.]]></text>
=A0
I can see the content I wan= t in an xml file. in the CDATA abvoe - being the content of a tweet "R= T @BoyTopi: I want to feel snow! Not the fake ones at Snow City."

the value of the "text" node returns a blank.

if I ge= t a node attribute of "text" then I get a return name value of &q= uot;#cdata-section" and no "value"

How do I get to th= e CDATA information in the following example.

Any ideas? Is there something I am missing?

thanks.

d.
sample: xml
<t=weets>  <twe=et>    <k=lass>tweets_locarea</klass>    <t=weetid>206405518925905920</tweetid>    <d=ate>1338045885</date>    <t=ext><!--[CDATA[HA:= Fair and Breezy and 50 F at Southern California Logisitics Airport, CA Win=ds are from the West at 20.7 gusting to 2 http://t.co/KqLrqbuk]]--></text>    <s=entiment>    <d=ma>803</dma<=/span>>    <t=weeter>      <screenname>Hesperia_WX</screenname>      <influence>25</influence>      <gender>unknown</gender>      <profileimageurl><=!--[CDATA[http://a0.twimg.com/profile_images/383407737/Offi=cial_SWAS_logo_normal.jpg]]--></profileimageurl>    </tw=eeter>    <l=ocation>      <countrycode>US</countrycode>      <country>United States Of America</<=span class=3D"end-tag">country>      <type>1</typ=e>      <id>USCA0481</id>      <state>CA</s=tate>      <name>Hesperia</name>    </lo=cation>  </sent=iment></twee=t>  <twe=et>

sample parse

--tweet:=20
=20 ---klass: tweets_locarea
=20 =20 =20 =20 ---tweetId: 206405503587328000
=20 =20 =20 =20 ---date: 1338045881
=20 =20 =20 =20 ---text:
=20 =20 =20 =20 ----#cdata-section: ------------------> the offending line
=20 =20 =20 ---sentiment:
=20 =20 =20 =20 ---dma: 803
=20 =20 =20 =20 ---tweeter:=20
=20 =20 =20 =20 ----screenName: HeyAbbie_
=20 =20 =20 ----influence: 27
=20 =20 =20 ----gender: female
=20 =20 =20 ----profileImageURL:
=20 =20 =20 -----#cdata-section: ------------------> the offending line
=20 =20 ---location:=20
=20 =20 =20 =20 ----countryCode: US
=20 =20 =20 ----country: United States Of America
=20 =20 =20 ----type: 1
=20 =20 =20 ----id: USCA0638
=20 =20 =20 ----state: CA
=20 =20 =20 ----name: Los Angeles

=A0

--00163662e5ea1318e204c0f23cae-- David Bastedo

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:

Changing SubTotal (2003) [WebDNA] OT: undeliverable messages? (2009) Number of cars in cart... (2004) cc auth with [purchase] (1998) RE: Can a database get stomped by simultaneous access? (1997) TPL Asks For Authentication (2004) Some shell fun (2004) version 2 for NT (1997) F3 crashing server (1997) [delete] problem (1997) creating a ShipCosts database (1997) RE: MacFinder -- a new WebDNA web site (1998) Re:WebCat for mass emailings (1997) DB Commit (2000) Help with Shipping Costs (1997) Unsibscribe Was: UPS uber integration (2007) Shopping problems with 2.1b3 acgi (1997) Webstar 1.3.1 PPC (1997) Netscape 3.01 can't see db in form (1997) flushdatabases (2000)