Andy Clark wrote:
> 
> Aleksander Slominski wrote:
> > i would like to round-trip XML document content as UNICODE.
> 
> While we designed XNI to pass as much information as
> reasonably possible, we don't intend it to be used for
> 100% round-trip processing.
> 
> However, you could do the following:
> 
> * before the root element
>    * print line + '\n'
> * in the DTD internal subset
>    * print " [\n" on startInternalSubset
>    * print line + '\n' on decls
>    * print ']' on endInternalSubset
> * after the root element
>    * print '\n' + line
> 
> It won't come out exactly as it went in but it's
> "pretty" enough for most people to read.

You omitted your favorite approach. Alex can write
his own configuration with his scanner that supplies
additional information through private channel/API.

I planned to take this approach for 2-way editor,
however have not realized it yet.

  Cc.

-- 
<address>
<a href="mailto:[EMAIL PROTECTED]";>Petr Kuzel</a> at Sun Microsystems
: <a href="http://xml.netbeans.org/";>XML module</a> and
: <a href="http://jini.netbeans.org/";>Jini</a> developer.</address>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to