in reply to Child contains attribute

You can call the attributes method on a single node and it returns the list of all the attributes on that node which you can then investigate futher.

  @attributelist = $node->attributes();

as mentioned in the XML::LibXML::Node documentation.

Replies are listed 'Best First'.
Re^2: Child contains attribute
by Anonymous Monk on Aug 26, 2014 at 12:56 UTC
    Hey, thanks for your quick Respons I tried your solution and I need to mention, that I forgot to explain, that the <text>-tag also contains attributes. With your solution, I only get the attributes of the text-tags and not of the metadata-tags. Regards, Sandorado

      Well then, search for "metadata" nodes after you have found "text" node. And, then get the attributes.