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

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -