[jdom-interest] Is JDOM dying?
Elliotte Rusty Harold
elharo at metalab.unc.edu
Fri Mar 21 00:31:38 PST 2003
At 11:19 PM -0800 3/14/03, Malachi de AElfweald wrote:
>ANOTHERWORDS, there is no concept of which namespace it is in until
>it is added to
>the parent, which is perfectly valid for XML since child nodes are
>in the same namespace
>as the parent (by default, inheriting). Looking at the XML output
>(textual) , the only way this can be done is by
>not using any namespaces at all -- thus no validation.
No, again you believe things about namespaces that aren't true. Child
elements are not in the same namespace as their parent element by
default. They are in whichever namespace is in scope for their prefix
(or lack thereof) irregardless of the namespace of the parent
element. Often, they are in the same namespace as the parent element,
but this is only because their prefix is mapped to the same URI as
the parent element's prefix.
--
+-----------------------+------------------------+-------------------+
| 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