Hmm. i am =stuck again it seems, I can get the data via xlst, but writing it to a =db seems really awkward, i think I need to look at another solution. So =how do you use middle to get the value to actually show =up?
d.=On Sun, May 27, 2012 at 7:23 PM, =Stuart Tremain <webdna@idfk.com.au> =wrote: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: support@webdna.usOn =27/05/2012, at 1:35 AM, David Bastedo =wrote:---------------------------------------------------------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.usHi, 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<=span></klass> =<tweetid>206405518925905920=span></tweetid> =<date>1338045885=</date> =<text><!--[CD=ATA[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&=lt;/gender> =<profileimageurl><!--[CDATA[http://a0.twimg.com/profile_images/383407737/Official_SW=AS_logo_normal.jpg]]--></profile=imageurl> </tweeter> <location> =<countrycode>US&=lt;/countrycode> =<country>United States Of =America</country> =<type>1</type > =<id>USCA0481<=/id> =<state>CA</state> =<name>Hesperia&l=t;/name> =</location> =</sentiment><=/tweet> =<tweet>
sampl=e 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
--=My Profiles![]()
![]()
![]()
Find me ondavidbmbastedo@gmail.com
My Latest Shared Link =is: QR code stickers turn =real-world objects into digital conversations | =Springwise
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list.To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
|
Hmm. i am =stuck again it seems, I can get the data via xlst, but writing it to a =db seems really awkward, i think I need to look at another solution. So =how do you use middle to get the value to actually show =up?
d.=On Sun, May 27, 2012 at 7:23 PM, =Stuart Tremain <webdna@idfk.com.au> =wrote: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: support@webdna.usOn =27/05/2012, at 1:35 AM, David Bastedo =wrote:---------------------------------------------------------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.usHi, 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<=span></klass> =<tweetid>206405518925905920=span></tweetid> =<date>1338045885=</date> =<text><!--[CD=ATA[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&=lt;/gender> =<profileimageurl><!--[CDATA[http://a0.twimg.com/profile_images/383407737/Official_SW=AS_logo_normal.jpg]]--></profile=imageurl> </tweeter> <location> =<countrycode>US&=lt;/countrycode> =<country>United States Of =America</country> =<type>1</type > =<id>USCA0481<=/id> =<state>CA</state> =<name>Hesperia&l=t;/name> =</location> =</sentiment><=/tweet> =<tweet>
sampl=e 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
--=My Profiles![]()
![]()
![]()
Find me ondavidbmbastedo@gmail.com
My Latest Shared Link =is: QR code stickers turn =real-world objects into digital conversations | =Springwise
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list.To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/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...