Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - How to get rid of xmlns="" [Thread Next] Re: How to get rid of xmlns=""To: NULL Date: 4/2/2004 10:38:00 AM Emir wrote:
> Hi
>
> All the nodes in my MSXML-created XML-file are properly assigned to
> namespace 'invoice'. There is one exception node that must not have any
> prefix.
>
> Using 'node.appendChild objDOM.createNode("1", "garant", "")' the node does
> show attribute xmlns="" which should be suppressed (requirement from
> customer).
>
> Could anyone give me a hint?
If you don't want a namespace undeclaration, specify the same namespace
as for the parent node. On the other hand, if "garant" is not supposed
to be in the same namespace, then the output is exactly what you should
be getting.
Julian
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
