473,383 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Intellisense generation using C# and XSD

I have a website which requires user input of xml data. The xml data
is currently entered by hand in a multi-line textbox. The xml is
fairly complex and I have an XSD file to validate it when the user
submits the form. I'm using Atlas elsewhere in my website and I'd like
to use it to add intellisense when users are typing in the xml. Anyone
know how to do this or where I might look for a start?

Thanks
Grim

Aug 30 '06 #1
1 2481
<gr********@gmail.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
>I have a website which requires user input of xml data. The xml data
is currently entered by hand in a multi-line textbox. The xml is
fairly complex and I have an XSD file to validate it when the user
submits the form. I'm using Atlas elsewhere in my website and I'd like
to use it to add intellisense when users are typing in the xml. Anyone
know how to do this or where I might look for a start?
Look at the XmlSchema class, and you'll see how it can be used to parse an
XSD schema, and then to read the definition programattically. You could use
this (with some effort) to provide feedback.

You could go farther, and use the schema to drive the user interface. For
instance, where the schema has an xsd:sequence with a multiplicity 1, you
could display a "+" sign which, when clicked, would create a new set of the
elements within the xsd:sequence. When there's an xsd:choice, you could
present radio buttons, one per choice. When one of the buttons is clicked,
you could then display the "input form" for that particular choice.

Microsoft's InfoPath product does this very well. You probably don't need to
be that fancy!

John
Aug 30 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Stefan Kronberg | last post by:
I'm working on a solution containing about 20 projects. Some of the projects contain class definitions that are used in other of the projects. Most of the time intellisense is working ok, i.e. if I...
2
by: carl.manaster | last post by:
Hi, Within my project, I've got a number of classes in separate files. When I point at the name of a class in the file in which it is defined, it shows the <summary> information for the class in...
2
by: Mythran | last post by:
I have asked this question here before but was given an answer I didn't like (stubborn I am!). I believe the way my question was interpreted was not as I had hoped...so I am trying again. In...
2
by: Michael.Suarez | last post by:
The code in my DLL: /// <summary> /// db_task..file_master_list /// </summary> /// <param name="panConnection"> /// Pass the PanApp.Connection object by reference /// </param> /// <param...
7
by: Andrew Robinson | last post by:
I have an overridden control: public class DJGridView : GridView { } All works great except that I loose IntelliSense for all of the child elements while editing the HTML file from within...
3
by: =?Utf-8?B?SmltIFJvZGdlcnM=?= | last post by:
It's perhaps not the end of the World, but I find it annoying that I lose IntelliSense when I reference Subs and Functions I have moved to an #Included file. Does anyone know of a reasonable way...
5
by: wal | last post by:
Hello, I'm using __declspec(property) to access get/set methods as properties (like in C# and VB.NET). Now, the problem is that both the property name and the get/set methods show in the...
3
by: Travis | last post by:
Hi, I was a user of Visual C# for a while and have gotten used to the Intellisense for that program. I went to try Visual Basic, and the intellisense is so much different. I'll try to make an...
4
by: Clive Dixon | last post by:
I have a project as part of a solution which contains a very large number of autogenerated class files. When compiling the solution and the autogenerated files have changed, visual studio takes an...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.