[jdom-interest] Custom XML outputter

Elliotte Rusty Harold elharo at metalab.unc.edu
Sun Jun 17 14:39:59 PDT 2001

At 12:44 PM -0700 6/17/01, guru at stinky.com wrote:

>I believe this can be fixed by making a protected inner class of
>XMLOutputter called XMLOutputter.NamespaceStack.  This will be a null
>subclass of the regular NamespaceStack, except that, due to
>inheritance access rules, subclasses of XMLOutputter outside the
>package will be able to declare and access it.

Cool. I knew this was a problem but I hadn't thought of that. I'm 
still not sure it's a perfect solution. I think the whole 
NamespaceStack API is a little fishy, but maybe this will tide us 
over until 1.1.

| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
|                  The XML Bible (IDG Books, 1999)                   |
|              http://metalab.unc.edu/xml/books/bible/               |
|   http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/   |
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |

More information about the jdom-interest mailing list