Joao,

Morning to You.....

Hello There.... I encountered this before.... an ENTER or New Line character
is a "Node.TEXT_NODE" type. So in order for u to just skipped whenever this
type is encountered, in your loop you have to put something like:

    for (y = 0 ; y < count ; y++)
    {
        node = childNodes.item(y);
        nodeType = node.getNodeType();
        if (nodeType != Node.TEXT_NODE)
        {
            nodeName = node.getNodeName();
            attrMap  = node.getAttributes();
            .
            .
            .
        }
        .
        .
        .
    }

Check out the DOM tutorial to know more about Node Types

Hope this will help............


----- Original Message -----
From: "Jo�o Marcelo Loureiro do Amaral" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 21, 2001 10:01 PM
Subject: Problems with XML files...


Hi,
    I'm using Xerces-C to parse my XML Files. But if the files is
formated with ENTER at final of each XML tags, the DOM Parser get the
ENTER like a child node. How can I do to formated my XML files with
ENTER at final of the tags, without any problems.

Thank's
Jo�o M L Amaral
Brazil



----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to