"LICHAO" <[EMAIL PROTECTED]> writes:

> I am sorry for my bothering anyone here. I am a typo to XML Parser.
> Appologize again.
> 
> I have another two questions:
> 1)  where can I find the FAQ maillist for xerces? I really have many
> questions. I want to find the answers before I bother everyone.

http://xml.apache.org/xerces-c/faqs.html

> 2) Jas' answer has solved my question perfectly, but it brings another
> question: How to filte the err message of "The main XML document cannot be
> empty"? The XML file is a temp file used to parse DTD, and I don't know
> anything of the DTD(even the root!!), so I can't build a complete XML file
> except an file only contains the prolog.
> 
> My temp XML file is like this:
> <?xml version="1.0" encoding="gb2312"?>
> <!DOCTYPE DOC SYSTEM "f:\xml_file\doc.dtd" >

simply add the tag <DOC/> after that.

The error message told you that you have a blank document (you just
had the XML Declaration and the Doctype, but no xml tags. That's an
error. 

<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE DOC SYSTEM "f:\xml_file\doc.dtd" >
<DOC/>

The FAQ isn't really going to help with these kinds of questions. I
would get a basic book on XML to start.

jas.

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

Reply via email to