Case Pascal class names when generating code using Visual Studio xsd.exe

The name pretty much says it all. VS xsd.exe creates classes in the case of a camel. Is there a way to generate classes in a pascal case?

If someone does not know about a good tool for converting the load of class names from the case of a camel to pascal.

thank

EDIT:

xsd.exe does not generate class names in the case of a camel as a standard - it just follows the schema symbol - however, I'm interested in overriding this behavior, so the XmlElement name attribute will still follow the conventions defined by the schema, but the class name is this is a pascal case.

+5
source share
2 answers

, xsd.exe , , camelCase?

xsd2code, xsd.exe .

+1

XmlSchemaClassGenerator, , PascalCasing . ( , 15- xsd2code.)


, , xsd, targetNamespace :

:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1">

Modified:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="gateway" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1">

:

XmlSchemaClassGenerator.Console -n "http://www.w3.org/2001/XMLSchema=gateway" -o "C:\{output-folder}" {xsd-file-name}.xsd
0

All Articles