Question
document to string
Is it possible in java (with a mixture of ACL if needed) to convert a DOM document object to a string (without writing the document to a file and reading the file in)?
To a certain extent I can do this, but a couple of things are causing problems.
I want the string to have the xml declaration and (less important) the processing instruction Arbortext adds ( like ). And most importantly, I need the resulting string to have only user-specified attributes, no DTD/Schema provided defaults. And by attributes, I mean both true element attributes as well as "attributes" to Arbortext-specific processing instructions like _font and _touchup.
Any help would be greatly appreciated.
--
Brian Jensen
bjensen@bluelid.com
To a certain extent I can do this, but a couple of things are causing problems.
I want the string to have the xml declaration and (less important) the processing instruction Arbortext adds ( like ). And most importantly, I need the resulting string to have only user-specified attributes, no DTD/Schema provided defaults. And by attributes, I mean both true element attributes as well as "attributes" to Arbortext-specific processing instructions like _font and _touchup.
Any help would be greatly appreciated.
--
Brian Jensen
bjensen@bluelid.com

