in reply to XML::LibXML::Element appendChild/addChild not inheriting namespace?
my $c = $p->addNewChild('http://foo', 'child');
If you need to use the prefix and inheritance, combine it with lookupNamespaceURI:
my $c = $p->addNewChild($p->lookupNamespaceURI('foo'), 'child');
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::LibXML::Element appendChild/addChild not inheriting namespace?
by szr (Scribe) on Jan 01, 2016 at 18:56 UTC | |
by choroba (Cardinal) on Jan 01, 2016 at 19:28 UTC |