Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by joyeux (Initiate)
on Nov 20, 2012 at 13:16 UTC ( #1004713=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004713]
help
Chatterbox?
and John Coltrane plays...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-06-25 21:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (571 votes). Check out past polls.