NeTEx-CEN / NeTEx

NeTEx is a CEN Technical Standard for exchanging Public Transport schedules and related data.
http://netex-cen.eu
GNU General Public License v3.0
86 stars 39 forks source link

Generate XML based on XSD #89

Open 1897 opened 4 years ago

1897 commented 4 years ago

Hello, Whenever i'm trying to generate a xml based on xsd i'm getting following:

Error: Error generating classes for schema ' '.

I'm using the Developer Command Promt for VS 2019

My goal is to generate the NeTEx class.

How can i fix above issue?

skinkie commented 4 years ago

If you would even succeed with this please let us know.

But the actual problem seems to be that MS-XML is not able to handle XSDs with multiple includes.

1897 commented 4 years ago

If you would even succeed with this please let us know.

But the actual problem seems to be that MS-XML is not able to handle XSDs with multiple includes.

i was hopping you will help me :D

are there any other ways i can achieve it? do not you have a complete xml netex file? i have generated class based on a xml but not sure how complete is it

skinkie commented 4 years ago

i was hopping you will help me :D I have actually asked someone at MSFT some months ago to see if they could help with this on a technical perspective.

are there any other ways i can achieve it?

XMLSpy and/or OxygenXML were able to generate interfaces for XML processing in C# as far as I understood.

do not you have a complete xml netex file? i have generated class based on a xml but not sure how complete is it

Sure, but keep in mind, these are NeTEx profiles: http://data.ndovloket.nl/netex/ (Dutch Profile) https://github.com/entur/profile-norway-examples (Nordic Profile) https://data.public.lu/en/datasets/horaires-et-arrets-des-transport-publics/ (EPIP profile)

Aurige commented 4 years ago

@1897 what root element are you trying to generate ?

Also, about Profiles, the French ones are here http://www.normes-donnees-tc.org/format-dechange/donnees-theoriques/netex/ (files are http://www.normes-donnees-tc.org/wp-content/uploads/2019/11/NF_Profil-NeTEx-%C3%A9l%C3%A9ments-communsF-v2.1.pdf http://www.normes-donnees-tc.org/wp-content/uploads/2019/11/NF_Profil-NeTEx-pour-les-arr%C3%AAtsF-v2.1.pdf http://www.normes-donnees-tc.org/wp-content/uploads/2019/11/NF_Profil-NeTEx-pour-les-R%C3%A9seauxF-v2.1.pdf http://www.normes-donnees-tc.org/wp-content/uploads/2019/11/NF_Profil-NeTEx-pour-les-HorairesF-v2.1.pdf and for accessibility http://www.normes-donnees-tc.org/wp-content/uploads/2019/12/NF_Profil-NeTEx-pour-laccessibilit%C3%A9F-v1.5.pdf) and UK also have a Tarif Profile available.

1897 commented 4 years ago

@1897 what root element are you trying to generate ?

Also, about Profiles, the French ones are here http://www.normes-donnees-tc.org/format-dechange/donnees-theoriques/netex/ (files are http://www.normes-donnees-tc.org/wp-content/uploads/2019/11/NF_Profil-NeTEx-%C3%A9l%C3%A9ments-communsF-v2.1.pdf http://www.normes-donnees-tc.org/wp-content/uploads/2019/11/NF_Profil-NeTEx-pour-les-arr%C3%AAtsF-v2.1.pdf http://www.normes-donnees-tc.org/wp-content/uploads/2019/11/NF_Profil-NeTEx-pour-les-R%C3%A9seauxF-v2.1.pdf http://www.normes-donnees-tc.org/wp-content/uploads/2019/11/NF_Profil-NeTEx-pour-les-HorairesF-v2.1.pdf and for accessibility http://www.normes-donnees-tc.org/wp-content/uploads/2019/12/NF_Profil-NeTEx-pour-laccessibilit%C3%A9F-v1.5.pdf) and UK also have a Tarif Profile available.

thanks for your answer! my primary goal is to convert PPT file to NeTex. as I understood, a direct conversion is not possible, so it is planned to have an additional file that that will enrich the PPT so we can achieve NeTex. The problem is I have no idea how can things be mapped between those 2 standards, what can be used for conversion, what is useless and what is missing in PPT. I know that some parts(fares) of Bison were already migrated to NeTEx, so it can be, probably, easily migrated, what about the rest?

hopefully you can give me some advises, thanks!

skinkie commented 4 years ago

PPT = Dutch fares?

1897 commented 4 years ago

PPT = Dutch fares?

yes, i think it is also called Bison, i need to convert somehow, the entire doc, not only the FareFrame

i should take max all possible data from PPT file and to created based on it a Netex one

skinkie commented 4 years ago

PPT = NeTEx (but an older version) So what do you want to convert it to?

1897 commented 4 years ago

to the new version, probably

skinkie commented 4 years ago

@1897 can you send me an email?

ue71603 commented 2 years ago

@skinkie Is there anything open from this? to be documented?

skinkie commented 2 years ago

For C# my hopes are not high. I think a Wikipage may help a lot of people. In addition, if we can have one full fledged example for each profile, than people insisting on using C# may generate a model of of it.