OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Do I need to use a validating parser?

[ Lists Home | Date Index | Thread Index ]
  • From: Chris Lilley <chris@w3.org>
  • To: "Joshua E. Smith" <jesmith@kaon.com>
  • Date: Wed, 05 May 1999 15:19:38 +0200


"Joshua E. Smith" wrote:
> 
> More questions from the new guy...
> 
> First, an easy one: If a language is defined in XML, you would say that
> language is XML-______.  Compliant?  Derived?  ish?  ey?  Compatible?

I would say "an application of XML" or "written in XML" depending on who
I was talking to.

For the language definition, if it was defined using DTD syntax, I might
say it was valid (if it was).

For a document instance, if it was well formed, then you could say it
was a "well-formed XML document"; otherwise, you would say it was
"stuff".

If an instance was in addition valid, then you could say that too.

> I'm trying to choose a parser to use in my plugin.  I see a choice between
> expat, which is non-validating, and will increase my download size by
> <100K, and SP which is validating, and will increase my download size by
> about 1MB.  Gak.

Great if there was a way to ask the browser if you could use *it's* XML
parser that it already has, huh?

> Do commercial validating XML editors exist yet?

Yes.

> I also suppose that my DTD is going to be pretty big by the time it's done,
> and downloading it every time someone wants to use my plugin is kind of
> stupid.  Right?  So that's another reason NOT to use a validating parser.

Using a DTD is a separate thing from validation. And, assuming you use
the browser cache, you only need to get it once.

> But in my reading  [XML Specification Guide: Graham, Quin, 1999], it
> appears that non-validating parsers are allowed to ignore tons of stuff.

Yes. Which means it has to occur explicitly in each document that you
create, rather than once in the DTD, thus giving you a per-download
filesize hit on your content.

> Is there ANY documentation of what expat actually *does*?  (For that
> matter, is there any documentation at all?)  I assume it ignores external
> entities, right?  That means I can't rely on putting boilerplate (think C
> #include files) into an external parsed general entity if I go with expat,
> right?

That is my understanding. 

--
Chris

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS