[jdom-interest] Re: Radical Suggestion
David Kavanagh
dak at dotech.com
Mon Jul 29 09:17:21 PDT 2002
Isn't it true that the getChild(ren)(String name, Namespace ns) method
will match any namespace when a null is provided for Namespace? That is
how I've been using it since I don't care about namespace in my documents.
David
Laurent Bihanic wrote:
>
> Elliotte Rusty Harold wrote:
>
>> We can only be as simple as Java if XML is as simple as Java. Here
>> I'm afraid it's not. A better mission statement would state "provide
>> a solution for using XML from Java that is as simple as Java and XML
>> themselves"
>
>
> Yet the JDOM API could offer methods to make the developers work simpler.
> For example, Element could support methods getChild/getChildren(String
> name, boolean ignoreNamespace) to match child nodes in any namespace
> or a constructor Element(String name, boolean inheritParentNs) to
> create elements that will automatically inherit the namespace of their
> parent node whenever attached to a new parent.
>
> These methods will never be used internally when building documents
> from text XML documents but could prove useful to many.
>
> Laurent
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
>
More information about the jdom-interest
mailing list