Anybody else have any clue why my XMLSearch(GeoCodeXML,//PostalCodeNumber)
might be returning an empty string?
-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 12:40 AM
To: CF-Talk
Subject: Re: There's got to be an easier way to parse this
Why do you have // vs /?
On 7/11/06, Howard Owens [EMAIL PROTECTED] wrote:
Anybody else have any clue why my
XMLSearch(GeoCodeXML,//PostalCodeNumber)
might be returning an empty string?
-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006
Because the node is several elements deep, and not always in a consistent
location.
FWIW correction: below I meant empty array.
H.
-Original Message-
From: John C. Bland II [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 11:48 AM
To: CF-Talk
Subject: Re: XPath help
Why do
I don't know whether you've posted your XML, but if you did, I'm not
seeing it. Maybe others aren't as well? Might be worth posting
again...
On 7/11/06, Howard Owens [EMAIL PROTECTED] wrote:
Anybody else have any clue why my XMLSearch(GeoCodeXML,//PostalCodeNumber)
might be returning an empty
return more than one node??
Not that great with Xpath.
...
Ben Nadel
www.bennadel.com
-Original Message-
From: Howard Owens [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 9:45 PM
To: CF-Talk
Subject: XPath help
Anybody else have any clue why my XMLSearch
Hey, that returns something useful. An array. Thanks.
Now to figure out how to extract the one piece of info I want.
H.
-Original Message-
From: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 12:02 PM
To: CF-Talk
Subject: RE: XPath help
I have had problems
Nadel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 12:02 PM
To: CF-Talk
Subject: RE: XPath help
I have had problems with name spaces in Xpath... Someone gave me this
little
gem which searches on the tag name:
XmlSearch( GeoCodeXML, //*[name()='PostalCodeNumber
:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 2:02 PM
To: CF-Talk
Subject: RE: XPath help
I have had problems with name spaces in Xpath... Someone gave me this
little gem which searches on the tag name:
XmlSearch( GeoCodeXML, //*[name()='PostalCodeNumber'] )
This will search for any tag anywhere
Having some XmlSearch problems, need help, totally stuck,
For some reason, the results object is not returning any results on
//doDirectorySearch. But, from the xml being saved below, it looks like it
should totally work. I also tried //[EMAIL PROTECTED] thinking
that it was an attribute issues,
into this issue yesterday. Here is the source of my solution:
http://www.talkingtree.com/blog/index.cfm/2005/11/18/XmlSearchNoNameName
space
M!ke
-Original Message-
From: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 17, 2006 4:00 PM
To: CF-Talk
Subject: Xpath Help
Having some
for Envelope
and Body, but no namespace for doDirectorySearch. So, you have to
search on a name() that is doDirectorySearch within your xml packet.
M!ke
-Original Message-
From: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 17, 2006 4:00 PM
To: CF-Talk
Subject: Xpath Help
considering the small amount of data?
...
Ben Nadel
www.bennadel.com
-Original Message-
From: Dawson, Michael [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 17, 2006 5:27 PM
To: CF-Talk
Subject: RE: Xpath Help
Ahhh. This is what I was originally going for...
xmlSearch
, //*[name()='searchFor'])
pcfdump var=#results#/p
pcfoutput#results[1].XmlText#/cfoutput/p
M!ke
-Original Message-
From: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 17, 2006 4:54 PM
To: CF-Talk
Subject: RE: Xpath Help
Mike,
You rock! I would like to modify it to be:
//*[name
17, 2006 6:16 PM
To: CF-Talk
Subject: RE: Xpath Help
Glad to help!
Since you say you know the format, I don't see any reasons why you should
not do this. It certainly cuts down on the amount of digging you would have
to do if you stopped the xmlSearch() a level above this element.
This works just
Subject: RE: Xpath Help
Freakin' sweeet!
Thanks Mike. This Xpath stuff looks pretty cool. I need to get learning
this stuff. Especially when we move SQL 2005 in house.
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4
Hi, I'm trying to get some XPath to work with respect to a navigation tree.
?xml version=1.0 encoding=utf-8 ?
tree
node objectid=3456 title=Informationa
node objectid=2134 title=Contact /
node objectid=5656 title=Top 1.2 /
node objectid=5672 title=Top 1.3 /
node objectid=123 title=Top
I found this site to be an excellent eye opener for xPath.
http://www.zvon.org/xxl/XPathTutorial/General/examples.html
Ian
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ian Sheridan
[EMAIL PROTECTED]
http://www.savagevines.com
- - - - - - - - - - - - - - - - - - - - - - - - - - -
I shot that off to fast here is a more focused link. the site is a
little confusing.
http://www.zvon.org/xxl/XPathTutorial/Output/example1.html
On May 21, 2004, at 7:56 AM, Ian Sheridan wrote:
I found this site to be an excellent eye opener for xPath.
At 07:04 AM 5/21/2004, you wrote:
Hi, I'm trying to get some XPath to work with respect to a navigation tree.
?xml version=1.0 encoding=utf-8 ?
tree
node objectid=3456 title=Informationa
node objectid=2134 title=Contact /
node objectid=5656 title=Top 1.2 /
node objectid=5672 title=Top 1.3 /
node
19 matches
Mail list logo