Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1004713]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 20:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found