hello Edwin,
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.
Herez an example which i have in my appln ( frm older dom4j).
all child elements are in the namespace ="http://vmw.test.com/eventNotification/v1/xsd"
. (this is verified by schemavalidation, xsd says that "WorkAGR" shud be in
"http://vmw.test.com/eventNotification/v1/xsd" namespace & it does pass
schemavalidation;)
<eventNotificationMsg xmlns="http://vmw.test.com/eventNotification/v1/xsd">
<WorkAGR>
<TimeSent>0620916202344</TimeSent>
<BasePriority>10</BasePriority><Center>MODELCNTCTR</Center>
<CustomerName>MISS Jane</CustomerName>
</WorkAGR>
</eventNotificationMsg>
------------------------------------------------------------------------- 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