Create VB Class from XSD Files

Create VB Class from XSD Files

Cancelled

Job Description

We used Xsd2Code - which is an Add-In for VS2010 - to Generate VB Classes from different XSD Files, enabling serialization, and the result was satisfactory.
We got 2 problems that we want to solve:
1- The add-in generates Classes with methods for serialization that produce XML files with Different Schema Declaration - Such as
<Ricorso xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Ignoring the Schema Declared in the XSD File which should be, for example:
<Ricorso xmlns="http://schemi.processotelematico.giustizia.it/atti/CorsoCausa" xmlns:evp="http://schemi.processotelematico.giustizia.it/eventi/parte" xmlns:pt="http://schemi.processotelematico.giustizia.it/tipi/atti">

2- XML Elements in the Output XML file Generated by the Class Serialization Ignore namespace and prefix. For example:
<procedimento>
<ufficio>987654321V</ufficio>
</procedimento>

Instead of
<pt:procedimento ruolo="Speciale" ufficio="987654321V">
</pt:procedimento>

What we need is to create methods to correct the generated class behavior to serialize output xml files according to initial schema, namespace and prefix.

Candidates will find attached one of the XSD files that should be used.

More details will be supplied upon request

Open Attachment