Jump to content
We've recently updated our Privacy Statement, available here ×

XML datasource problem


pedro.riky

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...