Scoped default namespaces
Kaan Yamanyar <[email protected]> Fri, 8 Jun 2012 11:43:56 +0300
| Newsgroups | gmane.text.xml.xmlbeans.user |
|---|---|
| Message-ID | <CANvjrRMWT6uw4WLzfbGXJ7DycAnW_OHZZupU07FW2iAttU1b6g@mail.gmail.com> |
Hi,
Is there a possible way to make use of default scoped name spaces?
I have not found any resources for this issue.
instead of:
<alfa data="abc" xmlns="http://test1.com/">
<mus:beta xmlns:mus="http://test2.com">
<mus:a>1234567897</mus:a>
<mus:s>777666</mus:s>
</mus:beta>
</alfa>
I would like to have:
<alfa data="abc" xmlns="http://test1.com/">
<beta xmlns="http://test2.com">
<a>1234567897</a>
<s>777666</s>
</beta>
</alfa>
note:
Map map = new HashMap();
map.put("http://test1.com/","");
map.put("http://test2.com/","");
xo.setSaveSuggestedPrefixes(map);
does not work
Cheers,
Kaan