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

RE: Nested Documents (was: XML 2.0)

  • From: "Johnson, Matthew C. (LNG-ALB)" <Matthew.C.Johnson@l...>
  • To: <xml-dev@l...>
  • Date: Wed, 27 Feb 2008 13:45:16 -0500

RE:  Nested Documents (was: XML 2.0)

In a world where XML allows multiple roots, I’m curious whether each root would potentially allow a different encoding?  Would multiple prologs be allowed?  Would multiple be necessary?

 

We recently had basically the situation described below.  However, we were on the receiving end of a “batch” of multiple XML “documents” stored in a single file.  Each document was separated by prolog.  To fit this into our pipeline, we wrote a customer XMLFilter (SAX) which understood that the file was really multiple XML files and then generated events...the first of which was a dummy root.  It worked quite well but was an extra step nonetheless.

 

Matt Johnson

 

 


From: COUTHURES Alain [mailto:alain.couthures@a...]
Sent: Wednesday, February 27, 2008 9:55 AM
To: Richard Salz
Cc: Michael Kay; xml-dev@l...
Subject: Re: Nested Documents (was: XML 2.0)

 

I don't understand what you mean by "more tightly linked"...

Having multiple roots is almost as having multiple documents, one after another, in a single message or in a single file... ?!?

I have seen plenty of examples of XML documents which are nothing but a collection of sub-documents and, in these cases, the root is meaningless, just there to have a valid XML document. When you convert a CSV file to an XML document, you have to create a root element, let's say 'Records', without attributes, and as many 'Record' elements as lines in the CSV file. I think 'Records' is useless...

Alain COUTHURES
<agenceXML>
http://www.agencexml.com

Richard Salz a écrit :


You didn't respond to what I thought was the more interesting point: multiple roots result in producer, intermediary, and consumer being more tightly linked.  Yes, as someone pointed out, you have the issue of trailing comments and PI's, but I'll do a hand-wave and say those are not common.  And I admit I'm trying to brush off something I find inconvenient. :)

        /r$

--
STSM, DataPower Chief Programmer
WebSphere DataPower SOA Appliances
http://www.ibm.com/software/integration/datapower/

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.