[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Partial XML Processors (was Re: JavaScript parser update and Questio

  • From: Richard Light <richard@l...>
  • To: xml-dev@i...
  • Date: Sat, 17 Jan 1998 10:28:48 +0000

parse xml javascript
In message <007101bd231a$f856c580$2801a8c0@j...>,
Jeremie Miller <jeremie@n...> writes
>More questions/issues then:
>
>A well-formed XML document is not required to have a DTD, internal or
>external, correct?  Is a well-formed parser not an XML parser that does not
>have access to or does not process a DTD, internal or external?  I guess I
>haven't found a clear definition of what a well-formed parser is yet.
>
>If this is true, then a well-formed parser doesn't even have to acknowledge
>that entities exist except for the built in ones, and absolutely all
>whitespace is preserved, right?

I don't think that this line of reasoning is going to be very helpful to
you.

While a well-formed XML document is not required to have a DTD, it is
perfectly entitled to have one if it wants to.  If this includes an
internal DTD subset, this will be physically part of the file your
parser is trying to parse.  So it follows that _any_ XML parser has to
be able to parse the internal subset correctly, simply to arrive
reliably at the root element.

Your logic is tending towards a situation where your 'partial XML
parser' would be unable to parse valid XML documents, which is certainly
not what is intended.  The idea is that _every_ XML document is well-
formed (and ergo parsable by a 'well-formed parser'), and some go on to
the sunlit uplands of validity.

All whitespace is preserved by any XML parser.  The only refinement is
the a validating parser will flag some of this whitespace as
'ignorable'.  It's up to the XML application to decide what it does with
this information.

Richard Light.

Richard Light
SGML/XML and Museum Information Consultancy
richard@l...

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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.