Sounds good to me, add to it the ability for XPATH to default to the 
context element's namespace and you're really talkin.  :-)
--Evan

Edwin Dankert wrote:
>>  in the older versions of dom4j,
>>
>>  we could use -->
>> Doc.getRootElement().addAttribute("xmlns","http://www.w3.org/2001/06/grammar";);
>>
>>  and this would make "http://www.w3.org/2001/06/grammar"; as
>> the DEFAULT namespace for
>>  the whole doc (whichwould apply to allthe child elemnts of the root.)
>>
>>  Wondering if same can be somehow done for dom4j.1.6.
>>     
>
> This loophole has been removed from dom4j because it is seen as wrong
> to treat namespaces as attributes, however maybe dom4j should have an
> option to set a default namespace for an element and place child
> elements in this namespace by default?
>
> Regards,
> Edwin
>   



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to