|
I use MIDDLE to get past the [CDATA---------------------------------------------------------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: suppo=rt@webdna.usOn 27/05/2012, at 1:35= AM, David Bastedo wrote: Hi, has anybody run into the following xml parsing issue?=
The node: =A0 <text><![CDATA[RT @BoyTopi: I want to feel s=now! Not the fake ones at Snow City.]]></text>
=A0
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 Sno=w 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<tweets> <tweet> <klass>tweets=_locarea</klass> <tweetid>2064=05518925905920</tweetid> <date>1338045=885</date> <text>=<!--[CDATA[HA: Fair and Breezy and 50 F at Southern California Log=isitics Airport, CA Winds are from the West at 20.7 gusting to 2 http://t.co/KqLrqbuk]]--=a>></text> <sentiment> <dma>803</dma> <tweeter> <screenname>Hesperia_WX</screenname> <influence>=25</influence> <gender>unk=nown</gender> <profileimageurl>=<!--[CDATA[http=://a0.twimg.com/profile_images/383407737/Official_SWAS_logo_normal.jpg]]--<=/a>></profileimageurl> </tweeter> <location> <countrycode>US </countrycode> <country>Un=ited States Of America</country><type>1</type> <id>USCA048=1</id> <state>CA=span></state> <name>Hespe=ria</name> </location> </sentiment></tweet> <tweet><=/pre>
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
DOWNLOAD WEBDNA NOW!
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...