Re: parsing

Subject: Re: parsing
From: Lars Marius Garshol <larsga@xxxxxxxxxx>
Date: 16 Jun 1999 10:37:43 +0200
* Chuck Robey
| 
| It's my understanding that OMITTAGS doesn't really apply to xml,
| because xml's rules are set ... and there isn't any sgml declaration
| in an xml document where I could place the OMITTAGS thing anyhow.  

This is correct, but SP is an SGML parser and so expects you to follow
the SGML rules, rather than the XML ones. You can still parse XML
documents, but you need to do it the SGML way. This document shows how:

<URL: http://www.jclark.com/sp/xml.htm>

If you're just looking for a C/C++ parser with validation there are
many others, which you can find at:

<URL: http://www.stud.ifi.uio.no/~larsga/linker/XMLtools.html#SC_XML>

| I was suprised, in Norm's xml dtd, there isn't even an <?xml ... ?>
| declaration.

There doesn't need to be, unless he's using some special character
encoding that needs to be declared.
 
--Lars M.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • parsing
    • Chuck Robey - Tue, 15 Jun 1999 23:02:34 -0400 (EDT)
      • Richard Light - Wed, 16 Jun 1999 09:09:51 +0100
      • Lars Marius Garshol - 16 Jun 1999 10:37:43 +0200 <=