Represent month name in XML

H

howa

Are there any guideline for representing month name in XML? (using XML
schema)

Currently I just use string

e.g.

<report month="Sep" ...

Is it okay or any suggestion?

Thanks.
 
J

Joseph Kesselman

howa said:
Are there any guideline for representing month name in XML? (using XML
schema)

No, because that's going to depend on what language you're working in
(plus, as your example shows, whether you want to abbreviate it and what
set of abbreviations you want to use if so). That really isn't something
which can be standardized across applications.

The schema-standard way to signify a particular month is the gMonth
datatype: http://www.w3.org/TR/xmlschema-2/#gMonth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top