please send us the DTD.

-----Original Message-----
From: Julia Larson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 4:33 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Stripping out whitespace



An amendment to my last message:

Actually, in the latter case

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE NSAPI SYSTEM
"NSAPI.dtd"><NSAPI><Domain DomainID="0"/><Domain DomainID="1"/></NSAPI>

The parser tells me it only has one child - the Domain "0" child.
Why doesn't it recognize the second child?

Please help
Thank you
-Julie



-----Original Message-----
From: Julia Larson 
Sent: Thursday, August 30, 2001 1:10 PM
To: '[EMAIL PROTECTED]'
Subject: Stripping out whitespace



Hello all,

Sorry if this has been brought up before, but 
is there a way to tell the parser to strip out or
ignore extraneous tabs and spaces.

The problem I'm having is parsing the following text:

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by Julia Larson
(NativeMinds) -->
<!DOCTYPE NSAPI SYSTEM "NSAPI.dtd">
<NSAPI>
        <Domain DomainID="0"/>
        <Domain DomainID="1"/>
</NSAPI>

When this is parsed by Xerces, it tells me that 
there is one node NSAPI and that is has only one 
child.  The child's name is "#text" and its content
is a tab.

Why isn't it telling me about the other children?

If I send it the following text instead:

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE NSAPI SYSTEM
"NSAPI.dtd"><NSAPI><Domain DomainID="0"/><Domain DomainID="1"/></NSAPI>

It works as expected.

Help!

Thank you
-Julie



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