Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 13 Sep 2012 at 9:20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant