Getting started on XSD

UPDATE: My excuses to VS.NET 2003, I just did not find some of the features of the schema editor and xml editor. Joshua Flanagan thanks for pointing this out!

Although I'm working with XML for years and years, have used DTD's and schema's and on a global level know quite well where to apply which technology I never really wrote my own XSD. Most of the time someone else in the project did this part.

OK, so I was constructing my first schema for a configuration file format for a tool I'm working on: the MacawSharePointSkinner (a tool to modify the looks of SharePoint without having to dig into the almost non-existent SharePoint way of changing the SharePoint looks).

I started out with VS.NET's schema designer. This sucks big time It is “sub-optimal“

  • Terrible sub-optimal documentation
  • no possibility to set attribute values like minOccurs and maxOccurs through the designer F4 -> properties
  • no functionality to derive a schema from an existing XML file
  • no functionality to generate a test XML document based on the defined schema
  • no functionality to generate documentation for the schema
  • no functionality to check my text XML document against the schema Automatically done when referencing the schema

Yesterday at TechEd Europe I walked into Altova XmlSpy in the exhibition hall, just a few hours after a stressful night with VS.NET. I explained what I needed, and they demonstrated their tool. I loved it! Today I fired up the full-functional demo copy and tried to get started.Still some trouble but I did get much further.. my schema is finished! Love the tool

What I missed in XmlSpy is good documentation on XSD itself, for example I could not get the following defined:

:
<foo a=“x“/>
<bar a=“x“>u</bar>
<bar a=“y“>v</bar>
<bar a=“z“>w</bar>
:

Where foo and bar can be used mixed.

  • xs:sequence defines a fixed sequence
  • xs:all does only allow minOccurs=0 maxOccurs=1, not maxOccurs=unbounded

It is just not possible to define this in schema (as far as I know), the tools says that something is wrong when trying those alternatives, but don't tell you why...

After searching for some good documentation for starters I came up with the following links to be read in sequence, although the first article was good enough for me to finish my schema:

Published Wednesday, June 30, 2004 7:30 PM by svdoever

Comments

Wednesday, June 30, 2004 8:20 AM by TrackBack

# XMLSpy over VS.NET XSD Development Tool

Wednesday, June 30, 2004 2:51 PM by Josh Flanagan

# re: Getting started on XSD

You must have a different version of Visual Studio .NET than me (2003).

In my version, I can bring up the properties window (F4) to set minOccurs and maxOccurs.

I can also open any XML file, right click on it and choose "Create Schema".

I also get little red squigglies when my test XML file doesn't match its assigned schema.

I like XML Spy as much as anyone, but I don't think its fair to say something "sucks big time" before you know all the facts.
Wednesday, June 30, 2004 3:45 PM by Andrew Connell

# re: Getting started on XSD

Interesting post, but the most interesting what you're doing... the SPS UI customization. Any info on that? We're feeling the pains of customizing right now!
Thursday, July 01, 2004 2:33 AM by Jan

# re: Getting started on XSD

When you install the BizTalk Server 2004 Client tools, you'll get a nice XSD editor whith more features. You can even test and generate XML instances. I know this is not an ideal solution (you need to have BizTalk), but if you have BizTalk in your MSDN subscription... :-)
Friday, April 27, 2007 5:19 PM by Britneybuzjm

# Good site

<a href= http://www.angelfire.com/crazy/gidala >a fistfull of dollars</a> <a href= http://www.angelfire.com/hiphop/zezebe >a exams</a> <a href= http://www.angelfire.com/planet/xubevi >aafes pxbx</a> <a href= http://www.angelfire.com/funky/qoroje >a pack of cards</a> <a href= http://www.angelfire.com/funky/madamy >a401 cash register sharp xe</a>

Friday, April 27, 2007 6:00 PM by jxurrbgib,jxurrbgib

# Good site

Ohh n nice site! kfyyui

<a href= http://dark-lolita.lolabuy.com/sweet-lolita-underage-images.html >sweet lolita underage images</a> [url=http://dark-lolita.lolabuy.com/sweet-lolita-underage-images.html]sweet lolita underage images[/url] <a href= http://lolita-tgp.lolabuy.com/ref-tar-aimee-sweet.html >ref tar aimee sweet</a> [url=http://lolita-tgp.lolabuy.com/ref-tar-aimee-sweet.html]ref tar aimee sweet[/url] <a href= http://sweet-lolita.lolabuy.com/sweetlolita-com.html >sweetlolita com</a> [url=http://sweet-lolita.lolabuy.com/sweetlolita-com.html]sweetlolita com[/url] <a href= http://lolita-tgp.lolabuy.com/little-sweet-rompl.html >little sweet rompl</a> [url=http://lolita-tgp.lolabuy.com/little-sweet-rompl.html]little sweet rompl[/url] <a href= http://lolita-xxx.lolabuy.com/sweet-lolita-angels-tgp.html >sweet lolita angels tgp</a> [url=http://lolita-xxx.lolabuy.com/sweet-lolita-angels-tgp.html]sweet lolita angels tgp[/url] <a href= http://lolita-xxx.lolabuy.com/index.html >free lyricks to the song sweet child of mine from guns and rose</a> [url=http://lolita-xxx.lolabuy.com/index.html]free lyricks to the song sweet child of mine from guns and rose[/url] <a href= http://lolita-tgp.lolabuy.com/sweet-young-porn.html >sweet young porn</a> [url=http://lolita-tgp.lolabuy.com/sweet-young-porn.html]sweet young porn[/url] <a href= http://lolita-tgp.lolabuy.com/sweetest-girls.html >sweetest girls</a> [url=http://lolita-tgp.lolabuy.com/sweetest-girls.html]sweetest girls[/url]

Good ko Luck Mate!

Sunday, April 29, 2007 2:44 PM by Britneyjyusq

# Good site

<a href= http://www.angelfire.com/droid/corolo >a1.dvd.audio.ripper.v1.1.40.incl.keygen</a> <a href= http://www.angelfire.com/funky/wyvyxu >ab belts</a> <a href= http://www.angelfire.com/punk/dysivy >a degree in child psychology</a> <a href= http://www.angelfire.com/funky/xykyqu >a place that only we know lyrics</a> <a href= http://www.angelfire.com/indie/valazy >a95f viewsonic</a>

Monday, April 30, 2007 8:54 PM by Britneyqtrgh

# Good site

<a href= http://www.angelfire.com/poetry/laruxi >aa606a</a> <a href= http://www.angelfire.com/poetry/riteky >a1 storage</a> <a href= http://www.angelfire.com/droid/wijujy >a picture of courtney cox in the longest yard</a> <a href= http://www.angelfire.com/funky/lylyne >a perfect circle music</a> <a href= http://www.angelfire.com/funky/nywite >a4y ginny</a>

Tuesday, May 01, 2007 2:00 AM by Britneyxzeso

# Good site

<a href= http://www.angelfire.com/blog/xycodo >aaron brooks michael vick</a> <a href= http://www.angelfire.com/hiphop/mehape >a dans</a> <a href= http://www.angelfire.com/goth/padepy >a1.com elliptical site trainers.info</a> <a href= http://www.angelfire.com/funky/xykevo >aa.com vacation</a> <a href= http://www.angelfire.com/indie/kosamo >aann.org ce</a>

Tuesday, May 01, 2007 2:01 AM by Britneyxzeso

# Good site

<a href= http://www.angelfire.com/blog/xycodo >aaron brooks michael vick</a> <a href= http://www.angelfire.com/hiphop/mehape >a dans</a> <a href= http://www.angelfire.com/goth/padepy >a1.com elliptical site trainers.info</a> <a href= http://www.angelfire.com/funky/xykevo >aa.com vacation</a> <a href= http://www.angelfire.com/indie/kosamo >aann.org ce</a>

# gaddij,gaddij,gaddij, <a href=" http://www.vg.edu ">generic viagra</a>,Good site

<a href=" http://www.vg.edu ">generic viagra</a>

Friday, May 11, 2007 12:55 AM by Britneyzmgeq

# Good site

<a href= http://sificy.front.ru >aar landing gear services</a> <a href= http://rawugi.front.ru >a night at the roxbury sound track</a> <a href= http://bywybu.front.ru >a man called hero torrent</a> <a href= http://gogyje.front.ru >a 174</a> <a href= http://dyqysy.front.ru >a descent into maelstrom</a>

Friday, May 11, 2007 12:55 AM by Britneyzmgeq

# Good site

<a href= http://sificy.front.ru >aar landing gear services</a> <a href= http://rawugi.front.ru >a night at the roxbury sound track</a> <a href= http://bywybu.front.ru >a man called hero torrent</a> <a href= http://gogyje.front.ru >a 174</a> <a href= http://dyqysy.front.ru >a descent into maelstrom</a>

Thursday, May 24, 2007 2:55 AM by Stether

# re: Getting started on XSD

cigarettes.blogbugs.org - cigarettes blog

Friday, August 01, 2008 10:37 PM by dark portal rompl

# dark portal rompl

Pingback from  dark portal rompl

Leave a Comment

(required) 
(required) 
(optional)
(required)