Ryan, I found how to do it...
It's same to SAXParser.
Thank you very much.
 

Ryan Roleda wrote:

Hello Jao, I think, first you have to store the data in the xml file into your buffer, then you simply parse it.  You have to do something like reading the file and store it to some String type of variable, try checking the file access functions for reference in storing data in files into some buffer. Im not sure if this is what you meant. But, you can check the MemParse example.... If u still have probs just mail me.... at ur service,ryan 
----- Original Message -----
Sent: Thursday, June 28, 2001 4:45 AM
Subject: Re: Problems with XML files...
 Dear Ryan,
    I'd like you help me again...
    At moment I'm using the DOMParser Classes for parse xml files. But I´m needing to parse a buffer in memory. How can I do it ?
    I tried to use the parse (  const InputSource & source, const bool reuseValidator = false ) method of DOMParser, but I didn't have sucess...

wait for your return.
Thak you.
João M L Amaral
 

"Ryan B. Roleda" wrote:

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]
begin:vcard 
n:Loureiro do Amaral;Joao Marcelo
x-mozilla-html:FALSE
org:Light Infocon Tecnologia S/A;Analista de Suporte
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;-17856
fn:Joao Marcelo Loureiro do Amaral
end:vcard

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

Reply via email to