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

Re: Create XML


create xml source
From: "Robert DiFalco" <rdifalco@t...>

> Of course, this isn't a big deal if my program is producing and
> consuming the XML. However, if I am consuming a document that a user
> produced, why should I force them to put FirstName, LastName, and
> Occupation into a particular order? A Person is still a Person if they
> appear as LastName, Occupation, and FirstName.
 
When thinking about XML in general, keep in mind that one popular
method of processing XML, especially for very large documents
or for very small documents, is to parse the document not into a 
tree or database tables but into a stream of events.  

For this kind of streaming processing, you don't have random access.
So the more that the incoming data events are in the typical sequence
that they will be used, the less that a programmer has to divert the
events to a temporary store for later use. 

The best practise for XML documents that may be processed by
streaming applications is to utilize document order as much as possible,
as the primary technique for reducing workload.  

In particular, what needs to be avoided is lookahead.  Decisions by the
notational users of the document, as far as they can be modelled ahead
of time, should not need to require information later in a document
to make decisions early. 

Examples of this might include:
 - having names in order (Robert's question);
 - putting footnotes at the start of a section or inline rather than at the
    end (it seems counter-intuitive);
 - having a <constants> section at the head of a document for 
   strings that will be used throughout the document, for consistancy;
  -embedding information sourced from databases that only appears once 
   inline, in the position it is expected, rather than using some kind of 
    reference to a later (or even earlier) element.

Cheers
Rick Jelliffe


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.