in reply to Re: How to get empty tag value in XML::XPath
in thread How to get empty tag value in XML::XPath

hi,

I will give you example that may make to understand

<?xml version="1.0" ?> <data> <server_address port="40">10.0.0.1</server_address> <server_address port="40"></server_address> </data>

This is my input

How do I go about fetching the empty port and nonempty attribute from "server_address" element?

  • Comment on Re^2: How to get empty tag value in XML::XPath

Replies are listed 'Best First'.
Re^3: How to get empty tag value in XML::XPath
by roboticus (Chancellor) on Oct 12, 2011 at 12:02 UTC

    Sorry, but I have no idea in which bit of your code you're having problems, and I'm not particularly inclined to play 20 questions. If you can strip your code down to the bare essentials, and describe your difficulties in adequate detail, I'm sure you can get an answer.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.