XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Which XML Technologies Are Beautiful?
Subject: Beautiful in my opinion
Date: 2007-04-20 15:01:32
From: dbaechtel

I like SyncRO Soft's Oxygen 8.x XML Editor. It gives me much needed features for the price and I can really rock XML and XSD design, testing and documentation with it.


I also like Microsoft's XLINQ to XSD technology. With it I can automatically generate either C# or VB.Net object class code into my application from an XSD file and the Load (read) or Save (write) XML data files to/from these object classes effortlessly as well as many other features. I can access my XML data directly from these object classes with XLINQ SQL-like statements or with much simplier direct object references in C# or VB.Net. It makes working with XSD and XML data files programmatically about as easy as it can be. In Visual Studio I even get Intellisense for my XSD classes to assist me with the coding.


Such as:
// BANG it out !!
// PeopleDB is defined by XSD file
var Pdb = PeopleDB.Load("../../PeopleDB0.xml");
// cnt = # of person in Pdb
int cnt = Pdb.person.Count;
// get name of first person in Pdb
String str = Pdb.person[0].Name.givenname + " " + Pdb.person[0].Name.familyName;
// and show it in a MessageBox
MessageBox.Show(str, "Person", MessageBoxButtons.OK);


Cut from much larger XSD file:


<xs:element name="PeopleDB">
<xs:complexType>
<xs:sequence>
<xs:element name="person" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="PersonName"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>


<xs:complexType name="PersonName">
<xs:sequence>
<xs:element name="familyName" type="xs:string" minOccurs="0"/>
<xs:element name="middlename" type="xs:string" minOccurs="0"/>
<xs:element name="givenname" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>


See download and documentation at:
http://www.microsoft.com/downloads/details.aspx?FamilyID=f83e69dd-ef73-49c5-9b3a-ee0c61e68a20&DisplayLang=en


They're Really Cool !!


Previous Message Previous Message   Next Message Next Message

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938