The point is that namespace is ignored while DIH reads the xml. So just use the part after the colon (:) in your xpath expressions and it should just work.
On Wed, Jul 22, 2009 at 2:16 PM, Antonio Eggberg<antonio_eggb...@yahoo.se> wrote: > Hi, > > I am looking at the slashdot example and I am having hard time understanding > the following, from the wiki > > == > > "You can use this feature for indexing from REST API's such as rss/atom > feeds, XML data feeds , other Solr servers or even well formed xhtml > documents . Our XPath support has its limitations (no wildcards , only > fullpath etc) but we have tried to make sure that common use-cases are > covered and since it's based on a streaming parser, it is extremely fast and > consumes constant amount of memory even for large XMLs. It does not support > namespaces , but it can handle xmls with namespaces . When you provide the > xpath, just drop the namespace and give the rest (eg if the tag is > '<dc:subject>' the mapping should just contain 'subject').Easy, isn't it? And > you didn't need to write one line of code! Enjoy" > == > > How does <dc:subject> becomes field subject and why it's mapping > xpath="/RDF/item/subject".. what is the secret? > > I am trying to index atom files and I need to understand the above cos I have > namespace, not sure how to proceed. are there any atom example anywhere? > > Thanks again for clarification. > Anton > > > __________________________________________________________ > Ta semester! - sök efter resor hos Kelkoo. > Jämför pris på flygbiljetter och hotellrum här: > http://www.kelkoo.se/c-169901-resor-biljetter.html?partnerId=96914052 > > -- ----------------------------------------------------- Noble Paul | Principal Engineer| AOL | http://aol.com