Title: RE: parsing an empty xml file
I get the following when I try to parse a 0 byte file using SAXPrint and SAXCount, Xerces 1.4, on NT4.0.
 
C:\Temp>saxprint c:\temp\empty.xml
<?xml version="1.0" encoding="LATIN1"?>
 
Fatal Error at file c:\temp\empty.xml, line 1, char 1
  Message: The main XML document cannot be empty
-----Original Message-----
From: Williamson, Siehnai [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 9:08 AM
To: '[EMAIL PROTECTED]'
Subject: RE: parsing an empty xml file

I am using Xerces 1.4 on the Win98 platform.  I am using the SAX parser.

    -----Original Message-----
    From:   Tinny Ng [SMTP:[EMAIL PROTECTED]]
    Sent:   Tuesday, December 11, 2001 8:14 AM
    To:     [EMAIL PROTECTED]
    Subject:        Re: parsing an empty xml file

    Which platform and which version of Xerces-C++ are you using?  I tried Xerces-C++ 1.6 on a number of platforms (linux, solaris, aix, hp, windows) and able to get the following message:

     > DOMCount empty.xml

    Fatal Error at file /home/tng/buildtest/xerces-c_2001-11-29-AIX43_5.02/bin/empty.xml, line 2, char 1
      Message: The main XML document cannot be empty

    Errors occured, no output available

    Tinny

    "Williamson, Siehnai" wrote:

       

      Hi Guys,

      Currently, if I attempt to parse an xml file which is empty (no tags, nothing), then I don't get an error back and Xerces is locked up.  Please help.

      Thanks

Reply via email to