General discussion

Locked

Searching XmlText in ColdFusion

By mcyonderboy ·
I'm using the XmlSeach string to search a parsed xml document
in coldfusion... for the life of me I can't get it to do what I want...
which is.

Its a structure of books and extracts. I have it looping through
the books looping and listing all the extracts. Now I want it to
loop through but list only extracts with certain words... for
example if I wanted it search for the word 'authority' for example
and it would then list only the extracts with the word authority in
the XmlText...

The (wrong) code which I'm using is...

<CFSET Bookquotes = XmlSearch (QuotesXML, "/quotesdb/book
[@name='#Booknames.XmlText#']/quotes/
excerpt.XmlText='%auth%'")>

but I'm getting nothing... can anyone please shed some light on
what I'm doing wrong...

Derm

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Web Development Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums