Jump to content

XML Search


Recommended Posts

It depends on many factors...

  • What language do you use to make the search?
  • What do you do with the result?
  • What part of the XML must be searched for? (Specific) Elements, (specific) attributes, (specific) strings, everything?

And possibly few other things I can't think of right now.The easiest and most universal way that is yet to come would be XQuery. It's simmilar to SQL commands that are suppose to query massive amounts of data and put them in a single result set.If you would use the result set in XSLT, then perhaps a recursive XPath expression might do a better job. Something like:

<xsl:value-of select="//*[contains(text(),$SearchString)]" />

Note: I haven't tested this one. it might not work, but you get the general idea.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...