java - Fastest (to implement) way to find pattern in an XML node -
java - Fastest (to implement) way to find pattern in an XML node -
i have xml file contains nodes needs varied @ runtime. example:
<pt:type>#type</pt:type> <pt:value>#value</pt:value>
i'd scan xml file , search nodes have "#" pattern in it. purpose fill xml using info have in memory. fastest way in java ? maybe there xpath look gather nodes having value ?
you can utilize xpath query contains
criteria function homecoming elements values holds set of character provided. should following:
//*[contains(text(), '#')]
java xml xpath
Comments
Post a Comment