BIRT XML Tags [message #552060] |
Tue, 10 August 2010 16:31 |
Veena Messages: 3 Registered: August 2010 |
Junior Member |
|
|
Hi,
I have a question regarding why in BIRT when XML file is used as a datasource,In the Column Mapping the <PersonName> tag is shown only once and why the other <PersonName> tag is not displayed. I have found a solution by giving numbers like [1],[2] ex:
For First <PersonName> tag
/Details/DetailsOfEachPerson/Person/PersonName[1]/FirstName and for MiddleName and LastName do on
For Second <PersonName> tag
/Details/DetailsOfEachPerson/Person/PersonName[2]/FirstName and for MiddleName and LastName do on
Question:
This procedure is fine,but if Im working with big xml I cant go on with this procedure.Is there any procedure to retrieve all xml tags from xml file even there are double,thrice similar tags. Is there any solution
Please help me out.
<?xml version="1.0" encoding="UTF-8"?>
<PersonDetails>
<Details>
<IDKey>1</IDKey>
<DetailsOfEachPerson>
<Person>
<PersonName>
<FirstName>Tom</FirstName>
<MiddleName>A</MiddleName>
<LastName>Barnes</LastName>
</PersonName>
<PersonName>
<FirstName>Jason</FirstName>
<MiddleName>B</MiddleName>
<LastName>Pal</LastName>
</PersonName>
</Person>
</DetailsOfEachPerson>
</Details>
</PersonDetails>
|
|
|
Powered by
FUDForum. Page generated in 0.03826 seconds