Retrieving XML attribute using XML::XPath::Node::Attribute
- From: "vikrant" <vikrant.kansal@xxxxxxxxx>
- Date: 28 Jun 2005 05:02:58 -0700
Hi
I am trying to retrieve an attribute of a particular node from my XML
using "XML::XPath::Node::Attribute", but couldn't come across on how to
successfully use it in my code. For example, if my xml is:
<?xml version="1.0" ?>
<data>
<server_address port="40">10.0.0.1</server_address>
</data>
How do I go about fetching the "port" attribute from "server_address"
element?
Vikrant
.
- Follow-Ups:
- Re: Retrieving XML attribute using XML::XPath::Node::Attribute
- From: Vikrant
- Re: Retrieving XML attribute using XML::XPath::Node::Attribute
- From: Michel Rodriguez
- Re: Retrieving XML attribute using XML::XPath::Node::Attribute
- From: Rohan R. Almeida
- Re: Retrieving XML attribute using XML::XPath::Node::Attribute
- Prev by Date: Re: Can't call method <function> on an undefined value at <module>
- Next by Date: Re: suggestions for new module name
- Previous by thread: Can't call method <function> on an undefined value at <module>
- Next by thread: Re: Retrieving XML attribute using XML::XPath::Node::Attribute
- Index(es):
Relevant Pages
|