Xpath expression from xml with namespace prefix?

Without more information about the host language (in which you attempt to evaluate XPath expressions) it is not possible to provide an useful recommendation Generally, one needs to "register" a namespace with a namespace manager and this also associates a prefix to the registered namespace. THen, using this NamespaeManager object as an argument to the XPath-evaluation method, one can specify as argument to this method an XPath expression that contains names prefixed by that particular prefix Workarounds : name()='bk:Books'/*name()='bk:Book' and text()='Time Machine'.

Without more information about the host language (in which you attempt to evaluate XPath expressions) it is not possible to provide an useful recommendation. Generally, one needs to "register" a namespace with a namespace manager and this also associates a prefix to the registered namespace. THen, using this NamespaeManager object as an argument to the XPath-evaluation method, one can specify as argument to this method an XPath expression that contains names prefixed by that particular prefix.

Workarounds: /*/*name()='bk:Books'/*name()='bk:Book' and text()='Time Machine'.

Or even better (and more portable), without the unnecessary prefix: /*/*local-name()='Books' ... and so on The function local-name ignores any prefix, which, as correctly stated by commenters, can vary.

Without more information about the host language (in which you attempt to evaluate XPath expressions) it is not possible to provide an useful recommendation.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions