scala.xml.parsing.ConstructingParser splitting text content

gychiache

New Member
I am using ConstructingParser to parse XML data into scala.xml.Node. I have noticed that on an XML fragment like<foo>bar < baz</foo>The root Elem does not have one single Text child containg "bar < baz" but instead has three separate Text child nodes, one containing "bar ", one containing "<" and one containing " baz". This breaks the subsequent processing of the document. I can merge the Text elements myself, of course, but I was curious if there is a way to make ConstructingParser do this for me.Gr. Silvio
 
Top