Groups | Blog | Home
all groups > dotnet xml > february 2005 >

dotnet xml : xsd.exe and HL7 Schemas


perlesnews NO[at]SPAM gmail.com
2/11/2005 4:35:40 AM
Hello everybody,

I am trying to create C# classes using xsd.exe on HL7 provided schemas
for v2.3.1 (http://www.hl7.org/Special/committees/xml/drafts/v231-200307.zip)

xsd.exe /classes datatypes.xsd
reports "The derived type and the base type must have the same content
type"

xsd.exe /classes messages.xsd
reports "The value for the 'ref' attribute is invalid - 'NTE)' is an
invalid value for the 'ref' attribute"

etc...

I downloaded a test version of XMLSpy which also reports errors on
DFT_P03.xsd.

Has anybody faced these problems before? How did you solve it?

Thank you,
Stan Kitsis [MSFT]
2/11/2005 5:08:45 PM
Lolo,

The first error is related to a content type derivation bug in system.xml.
This bug is fixed in Whidbey release of VS (VS2005), which is now in beta.

The second error could be a result of the first one.

--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.


[quoted text, click to view]

AddThis Social Bookmark Button