Hello all,

i want to get whole xmldata into one field, for that i am using
xpathentityprocessor with flattern=true
but still it doesn't work as expected.

e.g.  sample  xml is        <root><doc>abc</doc><part><id>abc</id>
                                                                 
<id>bcd</id>
                                                                 
<id>def</id>
                                                         </part></root>


main part i want is i want all "id" nodes into single field

 <entity name="x" onError="abort"  processor="XPathEntityProcessor"
flatten="true"  forEach="/root/part/id" url="${myfilepath}" dataSource="FD">
                     <field column="CommonIDs" xpath="/root/part/id" />
              </entity>

CommonIDs is single valued field, should contain "<id>abc</id>
                                                                 
<id>bcd</id>
                                                                 
<id>def</id>" if it takes root node also it will also fine for me.

please help me to solve this problem,


Thanks
Vishal Parekh


--
View this message in context: 
http://lucene.472066.n3.nabble.com/xpathentityprocessor-with-flattern-true-tp3637928p3637928.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to