![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
xsd.exe /? Microsoft (R) Xml Schemas/DataTypes support utility |
#2
| |||
| |||
|
|
xsd.exe /? Microsoft (R) Xml Schemas/DataTypes support utility [Microsoft (R) .NET Framework, Version 2.0.50727.42] Copyright (C) Microsoft Corporation. All rights reserved When I try this command: xsd /c /e:Transaction /l:cpp LargeSchema.xsd I get a number of "schema validation: warnings and "element is not declared" warnings. Finally, processing stops with a "datatype xxx is missing" error. LargeSchema.xsd opens and validates in XMLSpy. Is it possible the schema is too complex for xsd.exe to handle? Are there any alternatives to xsd.exe? Thanks for any suggestions. |
#3
| |||
| |||
|
|
"Schemer" <nowhere (AT) man (DOT) com> wrote in message news:OM92v4nQIHA.1212 (AT) TK2MSFTNGP05 (DOT) phx.gbl... xsd.exe /? Microsoft (R) Xml Schemas/DataTypes support utility [Microsoft (R) .NET Framework, Version 2.0.50727.42] Copyright (C) Microsoft Corporation. All rights reserved When I try this command: xsd /c /e:Transaction /l:cpp LargeSchema.xsd I get a number of "schema validation: warnings and "element is not declared" warnings. Finally, processing stops with a "datatype xxx is missing" error. LargeSchema.xsd opens and validates in XMLSpy. Is it possible the schema is too complex for xsd.exe to handle? Are there any alternatives to xsd.exe? Thanks for any suggestions. Most likely, there is another schema involved, and include schema, that has to be accounted for in the build. If the XSD is valid, then you should be able to pull all schemas involved into a project by using VS Project Add Existing Item, which will resolve or expose all problems with the XML schema. The one area that you can look it is the <namespace> tag, which indicates what namespace the XML is in and is using. XML.xsd that is not in the same <namespace> as the parent XSD can cause a missing element condition, along with the <include> XSD not being found period. Thanks for the reply. |
#4
| |||
| |||
|
|
Thanks for any insight into what is going wrong... |
I
#5
| |||
| |||
|
|
"Schemer" <nowhere (AT) man (DOT) com> wrote in message news:OM92v4nQIHA.1212 (AT) TK2MSFTNGP05 (DOT) phx.gbl... |
#6
| |||
| |||
|
|
"Schemer" <nowhere (AT) man (DOT) com> wrote in message news:%23%23Td4T%23QIHA.5692 (AT) TK2MSFTNGP02 (DOT) phx.gbl... "Schemer" <nowhere (AT) man (DOT) com> wrote in message news:OM92v4nQIHA.1212 (AT) TK2MSFTNGP05 (DOT) phx.gbl... If you're out there, you might want to take a look at this. It got me around my problem. I just build the XML myself, based on the XML files that were provided to me and their XSD(s). http://support.softartisans.com/kbview_675.aspx The download code for *aaron1.xml* allowed me to just build the XML(s) on the fly the way I needed them. My next task will be to use a MemoryStream and not write out any files. |
#7
| |||
| |||
|
|
"Mr. Arnold" <MR. Arnold (AT) Arnold (DOT) com> wrote in message news:e$aKnHtRIHA.1204 (AT) TK2MSFTNGP03 (DOT) phx.gbl... "Schemer" <nowhere (AT) man (DOT) com> wrote in message news:%23%23Td4T%23QIHA.5692 (AT) TK2MSFTNGP02 (DOT) phx.gbl... "Schemer" <nowhere (AT) man (DOT) com> wrote in message news:OM92v4nQIHA.1212 (AT) TK2MSFTNGP05 (DOT) phx.gbl... If you're out there, you might want to take a look at this. It got me around my problem. I just build the XML myself, based on the XML files that were provided to me and their XSD(s). http://support.softartisans.com/kbview_675.aspx The download code for *aaron1.xml* allowed me to just build the XML(s) on the fly the way I needed them. My next task will be to use a MemoryStream and not write out any files. Thanks for the information. I'll probably end up using XMLTextWriter. I am still hoping to somehow generate classes to encapsulate the complexity of the schema, and still don't have any more information on why xsd.exe fails when other tools accept the schema as valid... |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |