<Company> AT&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?
On Aug 19, 2009, at 12:54 PM, Michael Ludwig wrote: