Brad,
You can use * for the node name, but not sure about any regular
expressions. If you are interested, I just wrote an introductory
tutorial on Xpath in XmlSearch() and I don't remember seeing anything
about RegEx as I was learning:
http://www.bennadel.com/index.cfm?dax=blog:827.view
If you
:[EMAIL PROTECTED]
Sent: Tuesday, July 24, 2007 4:28 PM
To: CF-Talk
Subject: RE: xpaths and regex
Brad,
You can use * for the node name, but not sure about any regular
expressions. If you are interested, I just wrote an introductory
tutorial on Xpath in XmlSearch() and I don't remember seeing
There are regex 'functions' in the newest specification of
XML|XSLT|XPATH. But the xml parser used in CF as of version seven does
not support them.
I once had an extensive discussion with somebody on the Adobe Forums
about code he was running in a late model XML editor the used Regex and
how
]
Sent: Tuesday, July 24, 2007 3:34 PM
To: CF-Talk
Subject: RE: xpaths and regex
Yeah, this does work:
cfxml variable=xmlData
root
a1Meep/a1
a2Meep/a2
a3
b1Dink/b1
b2Meep/b2
?
www.bennadel.com/ask-ben/
-Original Message-
From: Brad Wood [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 24, 2007 4:40 PM
To: CF-Talk
Subject: RE: xpaths and regex
Good to know. I need my wildcard to be WITHIN the text though.
For instance, give me all nodes whose xmltext includes the text
: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 24, 2007 3:57 PM
To: CF-Talk
Subject: RE: xpaths and regex
I am not finding any thing on this, at least not in ColdFusion. It looks
like there are Full Text things for Xpath that work like RegEx, but not
that I can figure out
Are you open to alternate techniques then xmlSearch()?
I have done similar work by creating XSLT strings|files with place
holders. Then using replace() function, replace the place holder with
the desired pattern to match at runtime and execute the XSLT with an
xmlTransform() function.
http://www.xml.com/pub/a/2003/06/04/tr.html
Here is a link to regex capability in xpath and xslt 2.0. But CF does
not support 2.0 at this time? Anybody know if CF8 might?
~|
Get the answers you are looking for on the
: Tuesday, July 24, 2007 4:09 PM
To: CF-Talk
Subject: Re: xpaths and regex
Are you open to alternate techniques then xmlSearch()?
I have done similar work by creating XSLT strings|files with place
holders. Then using replace() function, replace the place holder with
the desired pattern to match
9 matches
Mail list logo