Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XML-Time format

From: MichaelK@-----------.---------.---
To: NULL
Date: 6/2/2005 4:36:00 AM
Hi

I am doing some serialization to XML in VB.NET. First I have used the 
xsd.exe program to create VB-classes from my XSD-file. Then I serialize the 
classes to XML. Everything works fine.

The problem is a time element. When I serialize it creates the following 
element.
<TimeTypeScheduledTime1>12:13:00.0000000+02:00</TimeTypeScheduledTime1>

Is there a way to format the element so it looks like this instead?
<TimeTypeScheduledTime1>12:13</TimeTypeScheduledTime1>


In the XSD-file the element are defined like this
<xs:element name="TimeTypeScheduledTime1">
	<xs:simpleType>
		<xs:restriction base="xs:time"/>
	</xs:simpleType>
</xs:element>

If there is a way to solve it, is it defined in the XSD-file or in my 
VB-program?

Best Regards and thank you for the answer

Michael K


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent