You are a genius! The first approach didn't work for some reason, but using XmlCursor worked a treat.
Thanks for the quick (and working) response. FYI, the first approach approach returned <xml-fragment></xml-fragment> when I sent to stdout Nirmal -- View this message in context: http://www.nabble.com/%3Cxml-fragment%3E-containing-well-formed-XML-Documents-t1480526.html#a4010624 Sent from the Xml Beans - User forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

