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

Re: Namespace: what's the correct usage?

  • From: Martin Gudgin <marting@d...>
  • To: Al Snell <alaric@a...>
  • Date: Sat, 19 May 2001 14:43:45 +0100

correct usage of sometimes

----- Original Message -----
From: "Al Snell" <alaric@a...>
To: "Martin Gudgin" <marting@d...>
Cc: "Kohsuke KAWAGUCHI" <kohsukekawaguchi@y...>;
<xml-dev@l...>
Sent: Saturday, May 19, 2001 12:35 PM
Subject: Re: Namespace: what's the correct usage?


> On Sat, 19 May 2001, Martin Gudgin wrote:
>
> [sample code]
> > In the above the Person instance is sometimes bound to the local name
> > 'martin' and sometimes bound to the local name 'o'. So I use the type
name
> > for the top level and then the field names of the Person class for the
child
> > elements.
>
> ASN.1/XER's approach to this problem is to use a set of rules to see which
> names to use when mapping from a programming-language-style type
> definition.
>
> http://asn1.elibel.tm.fr/xml/example.htm
>
> Note:
>
> 1) The top level element is named after the "class"
> 2) Everything else is generally named from the field names
> 3) The <children> element is defined as a sequence of ChildInformation
> "objects", and some way of delimiting each of them is again needed, so
> they are put into ChildInformation wrappers in the absence of a field name
> (you could also go for multiple <children> elements, but that would look
> odd - it's a plural, dammit!)
>
> ABS
>

Hi Al,

Looks like we have a similar approach, modulo the <children> element ( is
that basically used for arrays/collections? ).

Regards

Martin Gudgin
DevelopMentor


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.