We help IT Professionals succeed at work.
Get Started

Creating a simple schema with grouping elements using VS.NET Schema Designer

Last Modified: 2013-11-19
Hello, I trying to optimize a program I've already written. I used XML and I manually created the "start" and "end" element tags within my code and now I am moving to doing everything directly through a dataset.

The XML file I created in my program before looked like this, without a schema

             <NIC MAC="5565.." IP="..." />
             <NIC MAC="455.." IP="..." />
              <PROC Name="svchost.exe" />
              <PROC Name="blahblah.exe" />

There is a lot more but that is basically it. I would really like to keep the same format but use a schema for this (unless this is not the preferred format anymore). I can't figure out how to have elements that just hold other elements, like collection., my <NetworkInfo> element for instance, it just holds NIC elements.

This was very simple to do just doing manually using loops and case statements but again I'd like to take advantage of XSD's and dataset stuff. Using unique "primary keys" and so forth really isn't an option, because in many cases I need data that seems redundant (once it is in my database I use autoincrementing keys so the DB is normalized but removing pseudo-redundancy within my dataset is not an option (for instance many event log erros will have the same data, but I need them all)

Anyway, this may be very simple but I am just not seeing it. Thanks in advance.
Watch Question
Information Architect
Top Expert 2006
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE