Hi sathish,
It would be
<c:set var="xmlTxt">
<entity eid="5769562">
<name>test</name>
<address>123 main st</address>
</entity>
</c:set>
<x:parse xml="${xmlTxt}" var="xml"/>
<x:out select="$xml/entity/@eid"/>
Check it out...
Regards,
Siddharth.
-----Original Message-----
From: satish [mailto:[EMAIL PROTECTED]
Sent: 24 January 2004 02:36
To: [EMAIL PROTECTED]
Subject: QUESTION ABOUT XML
All,
I need some help with XML parsing and retrieving values.
My XML element is as follows
<entity eid="5769562">
<name>test</name>
<address>123 main st</address>
</entity>
How do I x:out the value of eid , For example 5769562 in this case.
Please help me out.
Thanks
satish
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]