Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6024779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:12:19+00:00 2026-05-23T04:12:19+00:00

I want to some dynamic control generation based on an XSD or DTD to

  • 0

I want to some dynamic control generation based on an XSD or DTD to be displayed on a form (WinForms) and the user can fill in values, probably mostly textboxes that will fill in attribute data and create legitimate fragments of XML to be inserted into an already existing XML file.

Is this doable – has anyone done this kind of thing before – if so what sort of design did you use?

Below is an example of the XSD:

 <xs:element name="layer-config">
    <xs:complexType>
      <xs:choice maxOccurs="unbounded">
        <xs:element ref="dynamic-feature-layer"/>
        <xs:element ref="dynamic-image-layer"/>
        <xs:element ref="folder"/>  
        <xs:element ref="layer"/>
        <xs:element ref="wms-layer"/>
      </xs:choice>
      <xs:attribute name="upload-can-drill-identify" type="BOOLEAN_TYPE" use="optional" default="true"/>
      <xs:attribute name="upload-can-extract-excel" type="BOOLEAN_TYPE" use="optional" default="true"/>
      <xs:attribute name="upload-can-extract-gml" type="BOOLEAN_TYPE" use="optional" default="true"/>
      <xs:attribute name="upload-can-extract-kml" type="BOOLEAN_TYPE" use="optional" default="true"/>
      <xs:attribute name="upload-can-find-by-attribute" type="BOOLEAN_TYPE" use="optional" default="true"/>
      <xs:attribute name="upload-can-hide-labels" type="BOOLEAN_TYPE" use="optional" default="true"/>
      <xs:attribute name="upload-can-identify" type="BOOLEAN_TYPE" use="optional" default="true"/>
      <xs:attribute name="upload-can-select" type="BOOLEAN_TYPE" use="optional" default="true"/>
      <xs:attribute name="upload-can-select-by-attribute" type="BOOLEAN_TYPE" use="optional" default="true"/>
      <xs:attribute name="upload-can-symbolize" type="BOOLEAN_TYPE" use="optional" default="true"/>
      <xs:attribute name="upload-can-symbolize-by-attribute" type="BOOLEAN_TYPE" use="optional" default="true"/>
    </xs:complexType>
  </xs:element>

I am thinking of doing this because I don’t want to hard code rigidly to an already existing XML file in case it gets dropped or changed for something else – then you have to recode and recompile the whole thing and start again. It’s also not that maintainable for end users either.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:12:19+00:00Added an answer on May 23, 2026 at 4:12 am

    Yes, this is doable. Here are a few pointers:

    • You can use LinqToXML to read the definition file (XSD), with the important properties (type, use, etc.)
    • Having your definitions in your hands, you should implement a class responsible for creating the fields
      • This class must have one method that creates one field based on one definition, using the important properties
      • This class must be able to group fields properly, according to the elements grouping in the definitions
    • You must decide what approach to use regarding positioning. There’s no positioning information in the definition file and you have not reported whether this is WinForms, WebForms, Silverlight,etc.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We want to use the calendar control to fill it with some text for
I want some slightly 'dynamic' XML source files. I want some of the element
Ok I want some opinions how I can fix this mess of a method!
I want to parse some HTML in order to find the values of some
I have user control that i wrote. this user control is appear on some
I have 2 or more dynamic string array that fill with some huge data
I want some particular urls like springer.com to automatically convert to springer.com.proxy1.mycollege.edu. The second
I want some of the items to be bold depending on a property of
I have a long snippet of HTML I want some javascript variable to equal
I have 3 Linux machines, and want some way to keep the dotfiles in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.