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

including lists in XML?

  • From: "Sam Gentile" <samg@f...>
  • To: <xml-dev@i...>
  • Date: Fri, 7 Aug 1998 13:17:00 -0400

lists in xml

Problem:
We need a way to represent lists of items.  That is, any item which will be
included in an XML buffer, where we don't know at compile time the size of
the list.

Proposal:
1. Include a field in the database, TMS_IPM_REPOSITORY_DETAIL, to indicate
to the factory to keep reading all items of a specific type untill there are
no more items of that type.  Or, to indicate to the factory to keep writing
all items of a specific type untill there are no more items of that type.
2. If this field is set, the Generator:
adds the "declare(RWGSlist, C<item>)" to the #include for class <item>
declares the type for C<item> as "RWGSlist(C<item>) m_lst<item>" wherever
the class <item> is used
3. If this the type of the item is a list, the factory has a get and put for
lists.  This class uses the RWGSlist member functions next() and at() to
access the items.

Copy of a XML buffer which has multiple instances
<XMLBuffer>
<Person><name>Henry Ford</name></Person>
<Person><name>Samuel Crowther</name></Person>
<Person><name>Harvey S. Firestone</name></Person>
<Book>
    <author>Henry Ford</author>
    <author>Samuel Crowther</author>
    <title>My Life and Work</title>
</Book>
<Book>
    <author>Harvey S. Firestone</author>
    <author>Samuel Crowther</author>
    <title>Men and Rubber</title>
</Book>
</XMLBuffer>


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.