XPATH Java String / glob matching

Questions about XML that are not covered by the other forums should go here.
Posts: 1

XPATH Java String / glob matching

Fri Jul 29, 2005 7:09 pm

Two questions. For the following XML snippet:



Will return the item node with text hi.

But, (using Java):

String s = "hi";

does not work. How do I get a Java string value in there?

Also - re matching, if the user enters a*b?c I need to return any values where * = one or more char matching and ? = exactly one char matching. I believe this is called Glob matching. Any way to do this using XML/XPath. Not sure about using XSLT within Java, but I suppose that is also a possibility.

All advice appreciated.



Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 0 guests