Hi;

            I have the following code snippet when creating XML
document:

 

              XMLString::transcode("http://www.aeroflex.com";, ns, 256);

              m_domDoc = impl->createDocument(ns, buffer, pDocType);

 

            The output I have is here:

 

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<!DOCTYPE TS>

<TS xmlns="http://www.aeroflex.com"; language="zh_CN"
sourcelanguage="en_US" version="2.0">

 

  <context xmlns="">

    <name xmlns="">Hello</name>

    <message xmlns="">

      <location xmlns="" filename="screen-lf.xml"/>

      <source xmlns="">Coupling</source>

      <translation xmlns="" type="unfinished"/>

    </message>

    <message xmlns="">

      <location xmlns="" filename="screen-lf.xml"/>

      <source xmlns="">Impedance</source>

      <translation xmlns="" type="unfinished"/>

    </message>

    <message xmlns="">

      <location xmlns="" filename="screen-lf.xml"/>

      <source xmlns="">Modulation:</source>

      <translation xmlns="" type="unfinished"/>

    </message>

    <message xmlns="">

      <location xmlns="" filename="screen-lf.xml"/>

      <source xmlns="">Sensitivity</source>

      <translation xmlns="" type="unfinished"/>

    </message>

    <message xmlns="">

      <location xmlns="" filename="screen-lf.xml"/>

      <source xmlns="">Voltage:</source>

      <translation xmlns="" type="unfinished"/>

    </message>

  </context>

 

</TS>

 

            Notice how the first <TS xmlns> has the namespace encoded
but not the rest of the xmlns in the document? It's ok if no namespace
is written in all the attributes but having 'xmlns=""' is not desirable.
How do I remove "xmlns" from the rest of the node attributes?

 

            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).

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).

Reply via email to