Bugs item #21424, was opened at 2008-08-03 11:50
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21424&group_id=494

Category: General
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Stringing commands bypasses correct node creation

Initial Comment:
When I create something along the lines of:

foo << XML::Node.new('bar') << "bars contents"

The following is returned:

---------

<foo>
   <bar/>bars contents
</foo>

---------

However, this:

foo << bar = XML::Node.new('bar')
bar << "bars contents"

returns this:

---------

<foo>
   <bar>bars contents</bar>
</foo>

---------

These results have been sporadic at times, it seems.  When I create 
XML::Documents in the console, sometimes it works fine, sometimes it doesn't.  
I have been unable to pinpoint a specific cause, but I am, however, having to 
rewrite a good bit of my code because invalid XML is being produced due to this 
bug.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21424&group_id=494
_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to