Retrieving XML attribute using XML::XPath::Node::Attribute



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

.



Relevant Pages

  • Re: Where are the list items stored?
    ... they are in the database but it is rare you ever need to retrieve them from there. ... Would you like to retrieve list items in XML? ... I'm wondering where I can find the list items in WSS? ...
    (microsoft.public.sharepoint.portalserver)
  • Re: design choice: multi-threaded / asynchronous wxpython client?
    ... actual starting prices at post time x minutes in the future). ... I can quickly retrieve the relevant last n tote data samples ... If instead of storing XML and YAML you store the data points, ...
    (comp.lang.python)
  • Re: Problem with alert and in javascript !
    ... You mean you the xml you retrieve is send over the wire like this? ... \n is an escape sequence and that instructs the parser ... in your case your not writing code your retrieving a string, ...
    (microsoft.public.scripting.jscript)
  • Bulk load, transform problem
    ... I have to retrieve some information that I have received in XML, ... it to a simple table in SQL. ... each of which is composed of multiple Members (Element. ...
    (microsoft.public.sqlserver.xml)
  • Re: DTD in browsers
    ... of W3C's paragraphs and we have to retrieve the "original intended ... DTD, but it is not a requirement on XML parsing in total. ... What is "pseudo-XML" about XHTML? ...
    (comp.infosystems.www.authoring.html)