http://www.perlmonks.org?node_id=1004713


in reply to Re: hi i want to retrieve the element and values from xml document
in thread hi i want to retrieve the element and values from xml document

Hi tobyink, thank u so much for ur help..

1.This is my xml document

<Order>
<Date>2003/07/04</Date>
<CustomerId>123</CustomerId>
<CustomerName>Acme Alpha</CustomerName>

<Item>
<ItemId> 987</ItemId>
<ItemName>Coupler</ItemName>
<Quantity>5</Quantity>
</Item>
<Item>
<ItemId>579</ItemId>
<ItemName>Clasp</ItemName>
<Quantity>1</Quantity>
</Item>
</Order>

2.my output should be
Date:2003/07/04
CustomerId:123...etc..like this

3.i have to select the element nodes without having to
specify their names..and retrieve the element
data value..in the same order as the elements in xml document

could plz help me for this..

  • Comment on Re^2: hi i want to retrieve the element and values from xml document