On Sat, May 23, 2009 at 10:31 AM, Jianbin Dai <djian...@yahoo.com> wrote:

>
> Oh, I guess I didn't say it clearly in my post.
> I didn't use wild cards in xpath. My question was how to index attributes
> "id" and "mid" in the following xml file.
>
> <merchantProduct id="814636051" mid="189973">
>                    <in_stock type="stock-4" />
>                    <condition type="cond-0" />
>                    <price>301.46</price>
> </merchantProduct>
>
> In the data-config.xml, I use
> <field column="price"    xpath="/merchantProduct/price" />
>
> but what are the xpath for "id" and "mid"?
>

That would be /merchantProduct/@id and /merchantProduct/@mid

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to