pedro.riky Posted May 24, 2007 Share Posted May 24, 2007 Hi all i have a xml datasource and i have the same tag that is identified by a id.I want to declare a field that rappresenting this data by i obtain only a null value.Where i fall? XML <address id="invoiced"><last-name>Pincopallo</last-name></address> <address id="incoterm"><last-name>Ciccio</last-name></address> i declare the fields <field name="delivery-address-name" class="java.lang.String"> <fieldDescription><![CDATA[/delivery-otes/delivery- note/address[id=invoiced]/first-name]] ></fieldDescription> </field> but return NULL..... Thanks! Link to comment Share on other sites More sharing options...
pedro.riky Posted May 24, 2007 Author Share Posted May 24, 2007 I try to explain better. if i have the same tag with different id attribute what can i get the tag with a specific id <tag id = "1"><desc>desctag 1</desc></tag><tag id = "2"><desc>desctag 2</desc></tag> if i declare a field <field name="description" class="java.lang.String"> <fieldDescription><![CDATA[/root/tag[id=1]]]></fieldDescription> </field> Is wrong? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now