xml:

        <Company>  AT&amp;T </Company>

i parse this using

        doc = LibXML::XML::Document.file('foo.xml')

if node points to this element, then
        node.content == 'AT&T'

all well and good. if i want to now create a new document,
then i do

        newnode = LibXML::XML::Node.new('Company')
        newnode.content = node.content

and this assignment has the error 'unterminated entity reference'
(which could be fair given that it is literally an unterminated entity reference). the question is should assignment of content automatically do teh conversion
or should teh user be responsible?
and if so, is there a convenient method for doing so?

(meta-question: is this documented anywhere, and if so, where?)


------------------
Andrew Hume  (best -> Telework) +1 732-886-1886
and...@research.att.com  (Work) +1 973-360-8651
AT&T Labs - Research; member of USENIX and LOPSA



_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to