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]
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]
