473,394 Members | 1,702 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,394 software developers and data experts.

how to introduce intellisense

I have an XML file with a deep heirarchy for which I generate an xsd.
Using this xsd I generate C# classes.
Then I deserialize the xml to generate an object of the root element.
Typically this object would contain an array of it's child elements and

each of these child elements will in turn contain an array of it's
child elements and so on.
The XML file is as follows
<?xml version="1.0" encoding="utf-8" ?>
<Nunit
xmlns="http://abc.com"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://xyze.com first2.xsd" >
<!-- UseCase[0] -->
<UseCase useCaseId="1010" name="Administrate Dealer Data">
<TestCase testCaseId="0" name="checkfordocumenttypes">
<Add AddId="0" param="dtype" value="FC" />
<Add AddId="1" param="userid" value="GUID" />
<Add AddId="2" param="ruid" value="" />
<Add AddId="3" param="docid" value="Madhu" />
</TestCase>
<TestCase testCaseId="1" name="checkfirstrowrule">
<Add AddId="0" param="" value="" />
<Add AddId="1" param="" value="" />
<Add AddId="2" param="" value="" />
<Add AddId="3" param="" value="" />
</TestCase>
</UseCase>
</nunit>
Now suppose I have an object of the root element type nunit, called
'test'.
I want intellisense to be invoked such that on using period after test,

all the "name" attributes of the "UseCase"
elements must be displayed, something like
test.
Administrate Dealer Data
Administrate LocalCarts
GetWebServices
and similarly
test.Administrate DealerData.

checkfordocumenttypes

checkfirstrowrule


How can such functionality be achieved?
Please help.

Feb 3 '06 #1
1 1202

<vi*********@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
I have an XML file with a deep heirarchy for which I generate an xsd.
Using this xsd I generate C# classes.
Then I deserialize the xml to generate an object of the root element.
Typically this object would contain an array of it's child elements and

each of these child elements will in turn contain an array of it's
child elements and so on.
The XML file is as follows
<?xml version="1.0" encoding="utf-8" ?>
<Nunit
xmlns="http://abc.com"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://xyze.com first2.xsd" >
<!-- UseCase[0] -->
<UseCase useCaseId="1010" name="Administrate Dealer Data">
<TestCase testCaseId="0" name="checkfordocumenttypes">
<Add AddId="0" param="dtype" value="FC" />
<Add AddId="1" param="userid" value="GUID" />
<Add AddId="2" param="ruid" value="" />
<Add AddId="3" param="docid" value="Madhu" />
</TestCase>
<TestCase testCaseId="1" name="checkfirstrowrule">
<Add AddId="0" param="" value="" />
<Add AddId="1" param="" value="" />
<Add AddId="2" param="" value="" />
<Add AddId="3" param="" value="" />
</TestCase>
</UseCase>
</nunit>
Now suppose I have an object of the root element type nunit, called
'test'.
I want intellisense to be invoked such that on using period after test,

all the "name" attributes of the "UseCase"
elements must be displayed, something like
test.
Administrate Dealer Data
Administrate LocalCarts
GetWebServices
and similarly
test.Administrate DealerData.
How could that work even in principle since identifiers cannot contain
spaces?
How can such functionality be achieved?
It can't - intellisense handles types not content.
Please help.


If you actually intend your xml to be a metalanguage rather than data then
you need to write your own XML to code translator - See CodeDom
(http://www.15seconds.com/issue/020917.htm) although I think that you'll
still have to do something about the spaces.
Feb 3 '06 #2

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

Similar topics

8
by: andrew.queisser | last post by:
Yesterday I typed in some C++ code that called a function with two ints. Intellisense (auto-complete) helpfully told me that the first formal parameter was called "frontLight" and the second...
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...
1
by: Christopher W. Douglas | last post by:
I'm working in VB.Net, using Visual Studio 2003. I have a project, let's call it Foo, that contains common methods, forms, and objects I use in other projects. It compiles as Foo.dll, which I...
0
by: Jim | last post by:
I had a strange problem the other day when using Intellisense, and wondering if anyone has any experience with or advice on this... Just to give some quick background, I have a multi-tier...
1
by: Yaron | last post by:
Hi, I have a custom ListView-type control that I designed a few months ago. The control is completely stable and functional. However, often, the Visual Studio .NET IDE's Intellisense will lose and...
9
by: Ulf Lindback | last post by:
Hi! We have an application surveillance product with a number of API's for different languages; one of them is a C API. Now I wonder how we can supply intellisense to our Visual Studio.Net...
12
by: Peteroid | last post by:
I was creating my application just fine for the last 3 weeks or so. Then, starting this morning, IntelliSense seems to be having problems. It goes into a locked 'Updating IntelliSense..." mode....
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...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.