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

Re: Reliable endpoints for XML docs (and doclets)

  • From: Tom Bannon <bannon@o...>
  • To: xml-dev@i...
  • Date: Thu, 05 Mar 1998 12:36:30 -0600

re reliable email
Chris Maden wrote:
> 
> [Tom Bannon]
> > Perhaps I've missed something, but I don't see that the start and
> > end points of XML documents are well defined, ie. something like
> > <xml> and </xml>, akin to HTML's <html> and </html>.  As XML is
> > rightly obsessed with the start and end of everything else, I find
> > this mystifying.  How am I to embed XML in other data (such as HTML,
> > but certainly not limited to it) without such markers (other than
> > hacking my own)?  An important feature of such markers is that they
> > can be located without having to be able to interpret any of the
> > content between them.  Implicitly defining the beginning and end of
> > an XML document as [bof] and [eof] appears shortsighted, if that is
> > the case.  Can you set me straight on this?
> 
> The point of XML is that you can name your own element types.  A
> required one would defeat the entire purpose.

My take is that XML offers a method of structured description.  Required
pieces would not damage such a goal, aesthetically unpleasing as they
might be.  Besides, well defined beginnings and ends are aesthetically 
pleasing.


> An XML document may have exactly one root element that contains
> everything else.  When the first element begins, the document instance
> begins.  When that element ends, the document instance ends.
> 
> See clause 2.1 in the XML specification.

Well, then by XML definition, XML documents are un-embeddedable, as the 
start of an XML document cannot be programmatically determined in the
general case (as <?XML ... ?> and <!DOCTYPE ...> are optional, and the 
name of the root element is arbitrary).  

Thus to embed, one would have to define their own start and end markers.
This can certainly be done, but it seems a much better idea to have this
be part of the XML definition so that it can be done in a standard way.


> By the way, xml-dev is for developers of XML applications.  Questions
> of this sort are probably more appropriate on XML-L.  Send mail to
> listserv@l... with a body of "subscribe xml-l".

Sorry, I'll copy this message there (when my subscription comes through!).

Tom

bannon@o...

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.