venta: (Default)
[personal profile] venta
I'm writing My First XML Schema... it's for a very simple family of XML documents which someone else has defined by saying "yes, well, it's all fairly self-explanatory".

(He's right, it is, though documenting that is actually quite hard.)

However, there is an elephantelement whose value is an ASN.1 GeneralizedTime. How do I express in the schema that that should be the case ?

I can do:

<element name="partyTime" type="xsd:dateTime" minOccurs="0"/>

... but that's not the same thing. How do I refer to ASN.1 entities from inside an XML schema ? ASN.1 does provide a method to encode GeneralizedTime objects into xsd:dateTime format, but I can't see how that's useful.

Or do I just call a GeneralizedTime a string and have done with it?
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

venta: (Default)
venta

December 2025

S M T W T F S
 123456
78910111213
14151617181920
212223 24252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 27th, 2025 11:00 am
Powered by Dreamwidth Studios