Perhaps create your own stream class that prefixes and postfixes a valid root, and pass that to the parser.
Quoting Sogol G <[EMAIL PROTECTED]>: > Hello, > > I have an XML document that's not well-formed. It's > missing its root element. The rest of it is > well-formed. > > EX: it's like this: > <blah attr='val'/> > <blah attr2='val2'/> > <blah attr3='val2'/> > . > . > > > I need to parse this document using Xerces. I have a > few ideas of how I should do this, but I wanted to > also ask you guys to see if there are easier methods > of doing this. A small code snippet to clarify your > suggestion would be appreciated. > > Thanks, > Sogol > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]