You need to add an explicit namespace to the document. If you search
this list you'll find some previous discussions about it.

-Ard

> Hello,
>  
> I've written a content import tool and need to extract some 
> of the xpaths to properties. The whole document has an 
> implicit namespace declaration. 
> Using an xpath as /meta/summary/title/text() doesn't seem to 
> work with the HippoSimpleXmlExtractor, probably because of 
> the implicit namespace. Using 
> /node()[local-name()='meta']/node()[local-name()='summary']/no
> de()[local-name()='title']/text() works, but makes my xpath a 
> bit less readable. I'd rather use a namespace prefix in my 
> xpath like /ns:meta/ns:summary/ns:title/text(). Is that 
> possible and if so, how?
>  
> Thanks,
>  
> Jasha
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
> 
> Searchable archives can be found at:
> <a href=ttp://hippocms-dev.markmail.org/">MarkMail</a> and <a 
> href=ttp://www.nabble.com/Hippo-CMS-f26633.html">Nable</a>.
> 
> 
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
<a href="http://hippocms-dev.markmail.org/";>MarkMail</a> and <a 
href="http://www.nabble.com/Hippo-CMS-f26633.html";>Nable</a>.

Reply via email to