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

Re: Comments, parsers, XPointers

  • From: David Megginson <ak117@f...>
  • To: "XML Developers' List" <xml-dev@i...>
  • Date: Tue, 1 Jan 1980 15:46:01 -0500

Re: Comments
John E. Simpson writes:

 > At 01:34 PM 1/1/80 -0500, you wrote:

 > >(comments have no purpose on the production/browsing side).

 > I was wondering about that. Specifically, I was wondering about a
 > "view source"-type feature in XML browsers, perhaps with a
 > show/hide comments toggle.  I've no experience with SGML, but I
 > (and a lot of -- most? -- other HTMLites) have frequently made use
 > of other developers' comments for learning purposes, outside the
 > context of formal training.

I can imagine as many as three "view" features for XML browsing beyond
the default formatted presentation:

1) View Source: see the raw, unparsed source of document entity,
   possibly with options for viewing the source of other entities.

2) View Logical Structure: see a tree control showing the element
   structure of the document, probably based on a DOM.

3) View Physical Structure: see a tree control showing the physical
   structure of the document, starting at the document entity; 'embed'
   XLinks might also be included here.  It should be possible to
   invoke "View Source" for any tree node.

For the first, there is no need to use an XML parser at all: just show
the original entity, comments, whitespace, and all.  

For the second, comments (and CDATA section boundaries s, etc.)  would
simply confuse the view by adding too many tree nodes -- I'd want them
filtered out even if the underlying DOM builder supported them.

For the third, I'd probably be interested only in external entities or

All the best,


David Megginson                 david@m...

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...)


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.
First Name
Last Name
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.