XML Schema Naming and Design Rules

On recent projects, I have found myself responsible for creating one or more XML schemas to describe the data and message structures for the web services that were being exposed.

One of my early struggles in doing this was developing a consistent approach for naming the elements and types that were used in the schemas.

One good source of naming and design standards is the Naming and Design Rules page on the OASIS Cover Pages that compiles several industry and government standards that have attempted to address this area.

Another helpful resource is the Use of Camel-Case for Naming XML and XML-related Components page. This second source focuses on how elements and attributes should be named for consistency.

For example, the ebXML standard has the following to say about the use of upper camel case for naming elements.

Mark

1 Like