via xsd.exe, een tool meegeleverd door microsoft bij visual studio.NET moet je xsd schema's om kunnen zetten naar c# of vb.net objecten.
voor meer info zie:
http://msdn.microsoft.com...aDefinitionToolXsdexe.asp
nu ben ik bezig met de XForms standaard en heb ik een XForms schema gevonden:
http://www.w3.org/TR/2002/WD-xforms-20020821/sliceA.html
ik heb hieruit een XForms.xsd aangemaakt (het xsd uit het html bestand)
en een XML-Events-Schema.xsd uit het 2e deel van het html bestand.
als ik nu xsd.exe aanroep op de volgende manier krijg ik errors:
de error is dit:
wat doe ik verkeerd?
voor meer info zie:
http://msdn.microsoft.com...aDefinitionToolXsdexe.asp
nu ben ik bezig met de XForms standaard en heb ik een XForms schema gevonden:
http://www.w3.org/TR/2002/WD-xforms-20020821/sliceA.html
ik heb hieruit een XForms.xsd aangemaakt (het xsd uit het html bestand)
en een XML-Events-Schema.xsd uit het 2e deel van het html bestand.
als ik nu xsd.exe aanroep op de volgende manier krijg ik errors:
code:
1
| xsd /c XForms.xsd |
de error is dit:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| Microsoft (R) Xml Schemas/DataTypes support utility [Microsoft (R) .NET Framework, Version 1.1.4322.573] Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. Schema validation warning: The 'http://www.w3.org/2001/xml-events:event' attribute is not declared. An error occurred at file:///C:/Program Files/Microsoft Visual Studio .NET 2003/SDK/v1.1/Bin/xforms.xsd, (533, 7). Schema validation warning: The 'http://www.w3.org/2001/xml-events:observer' attribute is not declared. An error occurred at file:///C:/Program Files/Microsoft Visual Studio .NET 2003/SDK/v1.1/Bin/xforms.xsd, (534, 7). Schema validation warning: The 'http://www.w3.org/2001/xml-events:target' attribute is not declared. An error occurred at file:///C:/Program Files/Microsoft Visual Studio .NET 2003/SDK/v1.1/Bin/xforms.xsd, (535, 7). Schema validation warning: The 'http://www.w3.org/2001/xml-events:handler' attribute is not declared. An error occurred at file:///C:/Program Files/Microsoft Visual Studio .NET 2003/SDK/v1.1/Bin/xforms.xsd, (536, 7). Schema validation warning: The 'http://www.w3.org/2001/xml-events:phase' attribute is not declared. An error occurred at file:///C:/Program Files/Microsoft Visual Studio .NET 2003/SDK/v1.1/Bin/xforms.xsd, (537, 7). Schema validation warning: The 'http://www.w3.org/2001/xml-events:propagate' attribute is not declared. An error occurred at file:///C:/Program Files/Microsoft Visual Studio .NET 2003/SDK/v1.1/Bin/xforms.xsd, (538, 7). Schema validation warning: The 'http://www.w3.org/2001/xml-vents:defaultAction' attribute is not declared. An error occurred at file:///C:/Program Files/Microsoft Visual Studio .NET 2003/SDK/v1.1/Bin/xforms.xsd, (539, 7). Warning: Schema could not be validated. Class generation may fail or may produce incorrect results. Error: Error generating classes for schema 'xforms'. - The element 'http://www.w3.org/2001/XMLSchema:schema' is missing. If you would like more help, please type "xsd /?". |
wat doe ik verkeerd?
[ Voor 6% gewijzigd door Crysania op 03-03-2004 18:07 ]