Thanks Kieth, I will try that. Using the Document didn't work anyway as my method which was written to put it into the Document from an AnyNode didn't work (somebody else wrote it and never tested it) - so right now I am brute forcing it by removing the first line of the string.


Keith Visco wrote:

Lauren,

You might want to file an enhancement request for that.

Instead of using the DOM as a workaround it would probably be quicker to use the following code:

StringWriter myWriter = new StringWriter();
..
Marshaller m = new Marshaller(myWriter);
..
m.setMarshalAsDocument(false);
m.marshal(anyNode);

String myString = myWriter.toString();

--Keith



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user

Reply via email to