heuza / google-styleguide

Automatically exported from code.google.com/p/google-styleguide
0 stars 0 forks source link

XML style guide does not address pluralization of element names if those names are in a sequence. #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There are two ways one might create an element name for elements that belong in 
a sequence, plural or singular.  For example...

Singluar:

<company>
  <employee name="Bob"/>
  <employee name="Alice"/>
</company>

Plural:

<company>
  <employees name="Bob"/>
  <employees name="Alice"/>
</company>

The singular approach is more intuitive when using the XML however the plural 
approach is more intuitive when using object-binding parsers (e.g. JAXB, 
objectify).  Is there a preferred format to use?

Original issue reported on code.google.com by weston.p...@gmail.com on 13 Sep 2012 at 9:20

GoogleCodeExporter commented 9 years ago
This isn’t really a bug report, just a question

Unfortunately, I don’t think there’s a discussion group for the XML style 
guide.

Original comment by mark@chromium.org on 28 Nov 2012 at 11:34