I don't know. You might want to query the patch author directly (or copy him
on a post to the list) in case he doesn't subscribe.

-----Original Message-----
From: Kevin King [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 4:58 PM
To: [EMAIL PROTECTED]
Subject: RE: FormatPrettyPrint implementation


I was unaware that some work at already been done.  I tried to apply the 
patch that is referenced below but keep getting errors.  What version of 
the files is the diff against?

-Kevin

At 09:26 AM 11/21/2002 -0500, you wrote:
>See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13840 for another
>implementation.
>
>-----Original Message-----
>From: Kevin King [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, November 21, 2002 2:12 AM
>To: [EMAIL PROTECTED]
>Subject: FormatPrettyPrint implementation

<<alot of text deleted>>


>My implementation of PrettyPrint seems to work with some random XML files I
>was able to find.  But I will not begin to suggest it is a complete or
>working solution since my knowledge of XML is minimal.
>
>I came up with a few rules, added to DOMWriterImpl::processNode() which
>seem to do the trick when PrettyPrint is enabled:
>
>          1) All text nodes that contain ONLY whitespace are ignored
>
>          2) Each tag begins on a new line, indented a variable amount
based
>on its level.  A level is defined as how many generations removed from the
>root element it is.
>
>          3) Closing tags for Element nodes are printed on the same line as
>the opening if no newlines have been output as the result of any
>children.  Otherwise closing tags are printed on a newline indented the
>same level as the opening tag.
>
>          4) An empty newline is printed just before the tag for each child
>of the root node.


---------------------------------------------------------------------
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]

Reply via email to