Hi,
I am writing a user control that will help a user that know (almost)
nothing about Xml to build a Xml file based on a Xsd schema that is given
to the user control.
The idea is to have a treeview on the left and a property grid on the
right.
The treeview is loaded with the root elements from the schema.
When the user right click on a node, a context menu allow him to add
subnodes if schema allow it.
This way, the user can create items, attributes, ...
The property grid is filled by the user with data.
At the end, the Xml file is generated and validated.
My problem is about the design.
I first link to each treenode the appropriate XmlSchema... type but I must
navigate the schema each time a user select or right click a node.
If I create my own type, I must create simplified XmlSchema... type but
seems a bit cumbersome.
I can't use xsd tool because the schema is given at run time.
Do you have any sample code, article or advice ?
Thanks in advance.
Droopy.
I am writing a user control that will help a user that know (almost)
nothing about Xml to build a Xml file based on a Xsd schema that is given
to the user control.
The idea is to have a treeview on the left and a property grid on the
right.
The treeview is loaded with the root elements from the schema.
When the user right click on a node, a context menu allow him to add
subnodes if schema allow it.
This way, the user can create items, attributes, ...
The property grid is filled by the user with data.
At the end, the Xml file is generated and validated.
My problem is about the design.
I first link to each treenode the appropriate XmlSchema... type but I must
navigate the schema each time a user select or right click a node.
If I create my own type, I must create simplified XmlSchema... type but
seems a bit cumbersome.
I can't use xsd tool because the schema is given at run time.
Do you have any sample code, article or advice ?
Thanks in advance.
Droopy.