java - How to extract a list of string from xml file? -


i have xml file , attribute "name" in of tags. if give correct xpath - there way extract list of strings, each element being 1 of values of attribute? (i not need entire list of dom nodes...)

with xpath 2.0 or xquery can write //@name/string() sequence of string values of name attributes in document. xpath 1.0 can select attribute nodes //@name need use host language (e.g. java) build list of attribute values.


Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

clojure - 'get' replacement that throws exception on not found? -