XSD Resolved!

Link. September 24, 2002. Comments [0]. Posted in: XML
Jason was right on the money. This works as expected:
<xs:complexType name="block">
   <xs:choice>
      <xs:sequence>
         <xs:element name="from"
                     type="xs:string"
         />
         <xs:element name="to"
                     type="xs:string"
                     minOccurs="0"
         />
      </xs:sequence>
      <xs:element name="to"
                  type="xs:string"
      />
   </xs:choice>
</xs:complexType>

Thanks, Jason!



Comments are closed.

Syndicate

About

Tomas Restrepo is a software developer located in Colombia, South America. His interests include .NET, Connected Systems, PowerShell and lately dynamic programming languages. More...

tomasrestrepo @ twitter My Flickr photostream My saved links on delicious My Technorati Profile

email: tomas@winterdom.com
msn: tomasr@passport.com

View my profile on LinkedIn

MVP logo

Ads


Links

Categories

Statistics

Total Posts: 1032
This Year: 102
This Month: 1
This Week: 1
Comments: 801

Blogroll

Archive

Other

Copyright © 2002-2008, Tomas Restrepo.

Powered by: newtelligence dasBlog 2.1.8139.823

Sign In