Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 2nd, 2007, 11:25 AM
Droopy
Guest
 
Posts: n/a
Default Dynamic Xml editor

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.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles