--Apple-Mail-22397789-A100-4C2B-9A5B-BD544A80BBB6-- Associated Messages, from the most recent to the oldest:Hi, has anybody run into the following xml parsing issue?
The node: <text><![CDATA[RT @BoyTopi: I want to feel snow! Not the fake ones at Snow City.]]></text>
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> <tweet> <klass>tweets_locarea</klass> <tweetid>206405518925905920</tweetid> <date>1338045885</date> <text><!--[CDATA[HA: Fair and Breezy and 50 F at Southern California Logisitics Airport, CA Winds are from the West at 20.7 gusting to 2 http://t.co/KqLrqbuk]]--></text> <sentiment> <dma>803</dma> <tweeter> <screenname>Hesperia_WX</screenname> <influence>25</influence> <gender>unknown</gender> <profileimageurl><!--[CDATA[http://a0.twimg.com/profile_images/383407737/Official_SWAS_logo_normal.jpg]]--></profileimageurl> </tweeter> <location> <countrycode>US</countrycode> <country>United States Of America</country> <type>1</type> <id>USCA0481</id> <state>CA</state> <name>Hesperia</name> </location> </sentiment></tweet> <tweet>
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
---------------------------------------------------------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
|
--Apple-Mail-22397789-A100-4C2B-9A5B-BD544A80BBB6-- D BrookeHi, has anybody run into the following xml parsing issue?
The node: <text><![CDATA[RT @BoyTopi: I want to feel snow! Not the fake ones at Snow City.]]></text>
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> <tweet> <klass>tweets_locarea</klass> <tweetid>206405518925905920</tweetid> <date>1338045885</date> <text><!--[CDATA[HA: Fair and Breezy and 50 F at Southern California Logisitics Airport, CA Winds are from the West at 20.7 gusting to 2 http://t.co/KqLrqbuk]]--></text> <sentiment> <dma>803</dma> <tweeter> <screenname>Hesperia_WX</screenname> <influence>25</influence> <gender>unknown</gender> <profileimageurl><!--[CDATA[http://a0.twimg.com/profile_images/383407737/Official_SWAS_logo_normal.jpg]]--></profileimageurl> </tweeter> <location> <countrycode>US</countrycode> <country>United States Of America</country> <type>1</type> <id>USCA0481</id> <state>CA</state> <name>Hesperia</name> </location> </sentiment></tweet> <tweet>
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
---------------------------------------------------------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
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...