CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2010
    Posts
    29

    Issue with classes generated with schema

    Dear All,
    I am facing problem with the classes generated from the schema.
    I am generated a class from the schema using xsd.exe.

    After generation, its removing some characters from the data types specified in the schema.

    For example, in my schema data types is having spaces,hyphen (-), '(' , ')'.
    After generation, the generated csharp file containing data types with out these characters.

    So after generating the xml from this class using xml serialization its failing in validation with schema.

    Is there any way to keep the data types as it is in the generated class just like same as the data types in the schema after generation?

  2. #2
    Join Date
    Jun 2001
    Location
    Melbourne/Aus (C# .Net 4.0)
    Posts
    686

    Re: Issue with classes generated with schema

    I'm not an expert in this area, but it does seem weired that data types would contain those characters in the first place.

    It may be worth posting a snippet of the original file here (the one you are generating a schema against) as it may help us come up with a fix/workaround.
    Rob
    -
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured