There's more to it than that, KH. If you compose your documents using node operations, then only the root element will have an xmlns attribute (if the document belongs to a namespace!) whereas if you extract elements and then recombine them using eg string operations, every fragment will have a namespace attribute. When you are using XML schemas for document validation, you will need to declare the document namespace, so your solution is more of a ' workaround'.
Btw, I think your question should be on users, not dev. -Ben On 9 Mar 2011, at 16:18, "Kok How, Teh" <teh.kok...@aeroflex.com> wrote: > Hi; > > I find out that there is “xmlns” in every node: > > > > <context xmlns=""> > > > > How to remove the “xmlns” so that I only have <context> instead? > > Thanks. > > > > Regards, > > KH > > Notice: This e-mail is intended solely for use of the individual or entity to > which it is > addressed and may contain information that is proprietary, privileged, > company confidential > and/or exempt from disclosure under applicable law. If the reader is not the > intended > recipient or agent responsible for delivering the message to the intended > recipient, you are > hereby notified that any dissemination, distribution or copying of this > communication is > strictly prohibited. If this communication has been transmitted from a U.S. > location it may > also contain data subject to the International Traffic in Arms Regulations or > U.S. Export > Administration Regulations and cannot be disseminated, distributed or copied > to foreign > nationals, residing in the U.S. or abroad, without the prior approval of the > U.S. Department > of State or appropriate export licensing authority. If you have received this > communication > in error, please notify the sender by reply e-mail or collect telephone call > and delete or > destroy all copies of this e-mail message, any physical copies made of this > e-mail message > and/or any file attachment(s). > Notice: This e-mail is intended solely for use of the individual or entity to > which it is > addressed and may contain information that is proprietary, privileged, > company confidential > and/or exempt from disclosure under applicable law. If the reader is not the > intended > recipient or agent responsible for delivering the message to the intended > recipient, you are > hereby notified that any dissemination, distribution or copying of this > communication is > strictly prohibited. If this communication has been transmitted from a U.S. > location it may > also contain data subject to the International Traffic in Arms Regulations or > U.S. Export > Administration Regulations and cannot be disseminated, distributed or copied > to foreign > nationals, residing in the U.S. or abroad, without the prior approval of the > U.S. Department > of State or appropriate export licensing authority. If you have received this > communication > in error, please notify the sender by reply e-mail or collect telephone call > and delete or > destroy all copies of this e-mail message, any physical copies made of this > e-mail message > and/or any file attachment(s). >