Lists Home |
Date Index |
Brian OBrien wrote:
> So what does one pass to XPath in order
> to extract an element?
> Are you supposed to know what prefix is going to be
No. if you had something like this:
dom = toDom("<u:response xmlns:u='foobar'>resp</u:response>");
then you could use something like this:
xpath = ...
responseText = xpath.eval(dom, "/x:response/text()")
ie, prefixes are relative to namespace bindings.