in reply to Re^5: XML::LibXML - WHAR HASH TREES WHAR?!
in thread XML::LibXML - WHAR HASH TREES WHAR?!

$sb->append(new_data_ele(SourceDBType => 'XML')) if !$sb->findnodes('XML')->size;

Okay, but that only checks to see if it found a SourceDBType tag. What if it's blank?

And I've never even seen a "SourceDBType => 'XML'" syntax. According to the docs, you can define a name and that's it. Hash-based options don't exist at all.

  • Comment on Re^6: XML::LibXML - WHAR HASH TREES WHAR?!

Replies are listed 'Best First'.
Re^7: XML::LibXML - WHAR HASH TREES WHAR?!
by ikegami (Patriarch) on Jul 18, 2011 at 19:50 UTC

    What if it's blank?

    Just adjust the XPath to your liking.

    Hash-based options don't exist at all.

    Where do you see a hash? Or docs for new_data_ele?