NamespaceContext and using namespaces with XPath

后端 未结 5 912
被撕碎了的回忆
被撕碎了的回忆 2020-12-01 13:10

Resolving an xpath that includes namespaces in Java appears to require the use of a NamespaceContext object, mapping prefixes to namespace urls and vice versa.

5条回答
  •  失恋的感觉
    2020-12-01 13:25

    I've just been working through using xpath and NamespaceContexts myself. I came across a good treatment of the issue on developerworks.

提交回复
热议问题