lib/xml_utils.pm

xml_utils.pm

Library for parsing xml files

get_xpc

get_xpc($string);

Returns XPathContext for the dom build using the string, which contains xml.

verify_option

verify_option(%args);

Verifies that node by given XPath is unique and has expected value. %args is a hash which must have following keys:

find_nodes

find_nodes(%args);

Finds all the nodes by xpath and returns the nodes as array.

xpc - XPathContext object for the parsed xml, xpath - XPath to the target node