kvnmck18 Posted July 7, 2006 Share Posted July 7, 2006 How do you make a search that would bring up XML data as a result? Link to comment Share on other sites More sharing options...
boen_robot Posted July 7, 2006 Share Posted July 7, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now