At 14.35 19/12/2005 -0200, Darlan Vivian wrote:
Hi Alberto,

I'm using the method writeToString() to serialize a DOMDocument.
The result is like this:

<protocol>
    <command>printf</command>
</protocol>

But when the command tag is empty, i need that the result is the following:

<protocol>
    </command>
</protocol>


I hope you meant <command/>... Anyhow, this is the behavior I see in the code for DOMWriter in Xerces 2.7

            DOMNodeSPtr child = nodeToWrite->getFirstChild();
            if (child != 0)
            [...]
            else
            [...]
*fFormatter << XMLFormatter::NoEscapes << chForwardSlash << chCloseAngle;

Which version of Xerces are you using?

Alberto

Exists some way that the DOMWriter makes this?

Best regards,

_______________________________
Darlan Vivian

<http://www.bry.com.br>www.bry.com.br
Rua Lauro Linhares, 2123 Torre B Sl.306
88036-002 - Florianópolis - SC - Brasil
Fone/Fax: (48) 234-6696 ramal 225

BRy Tecnologia - Confiança no uso de documentos eletrônicos.
Para adquirir seu certificado digital <https://www2.bry.com.br/loja/produtos.asp?COD_GRUPO=1>clique aqui. <http://www.bry.com.br/produtos/signer/default.asp>Clique e conheça o mais completo software para assinatura digital.


Reply via email to