[libxml-devel] << operator
Charlie Savage
cfis at savagexi.com
Thu Aug 21 16:02:18 EDT 2008
Sean Chittenden wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>> If the argument to << is a string, append to the xmlNode->content via
>> xmlNodeAddContent(3). If, however, the argument is an XML::Node, then
>> use xmlAddChild(3) to add an xmlNode->child node.
>
> And if it's an atribute:
>
> node1 << XML::Attribute.new('foo','bar')
Hmm, I wonder if that still works. I suspect it may not, would have to
check.
Charlie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://rubyforge.org/pipermail/libxml-devel/attachments/20080821/ff0beb32/attachment-0001.bin>
More information about the libxml-devel
mailing list