[jdom-interest] Namespace issues, et al.

Elliotte Rusty Harold elharo at metalab.unc.edu
Sun Feb 23 14:56:54 PST 2003

At 2:44 PM -0800 2/23/03, Malachi de AElfweald wrote:

>If you try to create that document, you get one of two scenarios...
>1) every element says xmlns="http://www.temporal-wave.com/spec" 
>(thus, lots of overhead over the network)
>2) the top element says that, the next one says xmlns="", and then 
>everything inside that doesn't show xmlns at all.

You've either uncovered a bug in the Serializer or there's a bug in 
your code, probably related to misuse of namespaces. I strongly 
suspect the latter, but the former is possible. If you could show a 
simple test case we could tell you which.

| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
|           Processing XML with Java (Addison-Wesley, 2002)          |
|              http://www.cafeconleche.org/books/xmljava             |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA  |
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |

More information about the jdom-interest mailing list