none
How to generate class from CCD schema

    Question

  • Hi im trying to create class for ccd schema provided by healthvault(http://developer.healthvault.com/types/type.aspx?id=9c48a2b8-952c-4f5a-935d-f3292326bf54).

     

    i used following command to create the schema "xsd D:\ccd.xsd /c /n:CCD"

    Im getting lot of schema validation warnings while creating that.  can any one help me to create the calss.

    and also i added to schema the following attribute on top most to teslove xx error xmlns:xs="http://www.w3.org/2001/XMLSchema"

    Tuesday, July 05, 2011 6:23 PM

Answers

  • Hi,

    I have tried to reproduce your issue, but was unable to do so. I have followed the steps given below:

    1. Copied the entire schema from http://developer.healthvault.com/types/type.aspx?id=9c48a2b8-952c-4f5a-935d-f3292326bf54, pasted it in a notepad and saved it as an xsd file.

    2. Executed the xsd command "xsd D:\ccd.xsd /c /n:CCD" from the Command Prompt (run as Administrator).

    3. The ccd.cs class file was successfully created without any errors or warnings.

    Can you please follow the steps given above and let me know if you are still getting validation errors? If you are still facing errors, can you please share the "ccd.xsd" schema file with me for further troubleshooting.

    Thanks, Piyali.

    • Marked as answer by cool.netDev Wednesday, July 06, 2011 10:47 AM
    Wednesday, July 06, 2011 9:59 AM

All replies

  • Hi,

    I have tried to reproduce your issue, but was unable to do so. I have followed the steps given below:

    1. Copied the entire schema from http://developer.healthvault.com/types/type.aspx?id=9c48a2b8-952c-4f5a-935d-f3292326bf54, pasted it in a notepad and saved it as an xsd file.

    2. Executed the xsd command "xsd D:\ccd.xsd /c /n:CCD" from the Command Prompt (run as Administrator).

    3. The ccd.cs class file was successfully created without any errors or warnings.

    Can you please follow the steps given above and let me know if you are still getting validation errors? If you are still facing errors, can you please share the "ccd.xsd" schema file with me for further troubleshooting.

    Thanks, Piyali.

    • Marked as answer by cool.netDev Wednesday, July 06, 2011 10:47 AM
    Wednesday, July 06, 2011 9:59 AM
  • Hi

    Thanks For your help. Its working fine.

    i copied xsd from the top link as Open as Schema File .

    now i copied the content from data given its working fine thank u.

    Wednesday, July 06, 2011 10:47 AM
  • Hi , 

    I tried to generate Class according answer but i am getting this error.

    Microsoft (R) Xml Schemas/DataTypes support utility
    [Microsoft (R) .NET Framework, Version 4.0.30319.17929]
    Copyright (C) Microsoft Corporation. All rights reserved.
    Schema validation warning: The 'urn:hl7-org:sdtc:patient' element is not declare
    d. Line 5902, position 8.
    Schema validation warning: The 'urn:hl7-org:sdtc:patient' element is not declare
    d. Line 4868, position 8.
    Schema validation warning: The 'urn:hl7-org:sdtc:patient' element is not declare
    d. Line 4852, position 8.

    Warning: Schema could not be validated. Class generation may fail or may produce
     incorrect results.

    Error: Error generating classes for schema 'ccd'.
      - The element 'urn:hl7-org:sdtc:patient' is missing.

    If you would like more help, please type "xsd /?".

    Tuesday, February 19, 2013 2:19 PM
  • Hello

    can you send me the xsd file and class files ?, i am not able to find them on the above link.

    Sunday, October 06, 2013 2:38 PM
  • Hello

    can you send me the xsd file and class files ?, i am not able to find them on the above link.

    Sunday, October 06, 2013 2:39 PM
  • Hello

    can you send me the xsd file and class files ?, i am not able to find them on the above link.

    Sunday, October 06, 2013 2:39 PM