visio.xsd problem with vdx files

S

Sculpere V

I downloaded the DatadiagramML Schema (visio.xsd) from Microsoft and ran
xsd.exe (.NET 1.1) on it to create C# classes. When I tried to use the
resultant VisioDocument_Type with the XmlSerializer I got an exception on
the first line:
XmlSerializer serializer = new XmlSerializer(typeof(VisioDocument_Type));

I examined the code with XmlSerializerPreCompiler and got the following
errors (CharterVisio is my namespace):
\Temp\awms1845.0.cs(2458,114): error CS0030: Cannot convert type
'CharterVisio.Shape_Type[]' to 'CharterVisio.Shape_Type'
\Temp\awms1845.0.cs(17637,106): error CS0030: Cannot convert type
'CharterVisio.Shape_Type[]' to 'CharterVisio.Shape_Type'
\Temp\awms1845.0.cs(20790,163): error CS0029: Cannot implicitly convert type
'CharterVisio.Shape_Type' to 'CharterVisio.Shape_Type[]'
\Temp\awms1845.0.cs(49391,167): error CS0029: Cannot implicitly convert type
'CharterVisio.Shape_Type' to 'CharterVisio.Shape_Type[]'

Does anyone has a working class structure to serialize vdx files?

Thanks,
Sculpere
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top