You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to generate C# classes from the 'siri_estimatedTimetable_service.xsd' schema, using Microsoft's xsd.exe tool. I got the following errors and warnings.
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 4.8.3928.0]
Copyright (C) Microsoft Corporation. All rights reserved.
Schema validation warning: Type 'http://www.ifopt.org.uk/acsb:AccessibilityAssessmentStructure' is not declared. Line 1350, position 5.
Schema validation warning: Type 'http://www.ifopt.org.uk/ifopt:EquipmentRefStructure' is not declared. Line 638, position 5.
Schema validation warning: Type 'http://www.ifopt.org.uk/ifopt:EquipmentTypeRefStructure' is not declared. Line 648, position 5.
Schema validation warning: Type 'http://www.ifopt.org.uk/ifopt:EquipmentStatusEnumeration' is not declared. Line 658, position 5.
Schema validation warning: Type 'http://www.ifopt.org.uk/ifopt:StopPlaceRefStructure' is not declared. Line 195, position 5.
Schema validation warning: Type 'http://www.ifopt.org.uk/ifopt:StopPlaceComponentRefStructure' is not declared. Line 200, position 5.
Schema validation warning: Type 'http://www.ifopt.org.uk/acsb:AccessibilityAssessmentStructure' is not declared. Line 383, position 5.
Schema validation warning: Reference to undeclared model group 'http://www.ifopt.org.uk/acsb:MobilityLimitationGroup'. Line 218, position 8.
Schema validation warning: Reference to undeclared model group 'http://www.ifopt.org.uk/acsb:SensoryLimitationGroup'. Line 219, position 8.
Schema validation warning: Type 'http://www.ifopt.org.uk/acsb:AccessibilityAssessmentStructure' is not declared. Line 166, position 5.
Schema validation warning: Type 'http://www.ifopt.org.uk/acsb:SuitabilityStructure' is not declared. Line 229, position 8.
Schema validation warning: Type 'http://www.ifopt.org.uk/ifopt:CountryRefStructure' is not declared. Line 146, position 5.
Schema validation warning: Type 'http://www.ifopt.org.uk/ifopt:CountryRefStructure' is not declared. Line 168, position 5.
Schema validation warning: Type 'http://www.ifopt.org.uk/ifopt:CountryRefStructure' is not declared. Line 209, position 5.
Schema validation warning: The 'http://www.opengis.net/gml/3.2:Polygon' element is not declared. Line 244, position 5.
Warning: Schema could not be validated. Class generation may fail or may produce incorrect results.
Error: Error generating classes for schema 'siri_estimatedTimetable_service'.
- The datatype 'http://www.ifopt.org.uk/ifopt:CountryRefStructure' is missing.
If you would like more help, please type "xsd /?".
Can someone have a look? Has anyone been successful with this?
Thanks,
Thuc
The text was updated successfully, but these errors were encountered:
Hello @thucnguyen77
The first nine warnings seem to concern validation of the schema /siri_model/siri_facility.xsd in which the corresponding ifopt import statements should be present. What version or branch did you use?
Does it work if you try to reference the imported schemas explicitly with "xsd.exe /c schema.xsd import1.xsd import2.xsd"?
Hello @skinkie If I remeber correctly, you fixed some similar issues related to code generation with JAXB. Do you have any idea how to solve this problem and why the imports were changed in the referenced commit?
Cheers
Hi,
I was trying to generate C# classes from the 'siri_estimatedTimetable_service.xsd' schema, using Microsoft's xsd.exe tool. I got the following errors and warnings.
Can someone have a look? Has anyone been successful with this?
Thanks,
Thuc
The text was updated successfully, but these errors were encountered: