Re: XPATH and RDF XML
cfset newsitems= XmlSearch(newsobj, //item) Paul: Try this instead... cfset newsitems = XmlSearch(newsobj, //*[name()='item']) -- Roger Benningfield work: http://journurl.com/ blog: http://admin.mxblogspace.journurl.com/ ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183590 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: XPATH and RDF XML
I'm trying to get all of the item elements in the XML doc pasted below using the following Xpath query but the returned array is empty. Namespaces without prefixes can be tricky to handle with XPath 1.0... This should do the job: cfset newsitems= XmlSearch(newsobj, //*[local-name()='item']) Massimo Foti DW tools: http://www.massimocorner.com CF tools: http://www.olimpo.ch/tmt/ ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183597 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: XPATH and RDF XML
Excellent thanks! -Original Message- From: Roger Benningfield [mailto:[EMAIL PROTECTED] Sent: Monday, 8 November 2004 18:32 To: CF-Talk Subject: Re: XPATH and RDF XML cfset newsitems= XmlSearch(newsobj, //item) Paul: Try this instead... cfset newsitems = XmlSearch(newsobj, //*[name()='item']) -- Roger Benningfield work: http://journurl.com/ blog: http://admin.mxblogspace.journurl.com/ ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183674 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54