Search Result

Collapse
2 results in 0.0041 seconds.
Keywords
Members
Tags
minoccurs
  •  

  • Peter Larsen
    Guest started a topic xs:choice and child elements with minOccurs=0
    in .NET

    xs:choice and child elements with minOccurs=0

    Is this really a valid schema design?

    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    elementFormDefa ult="qualified" >
    <xs:element name="root">
    <xs:complexType >
    <xs:sequence>
    <xs:choice>
    <xs:element name="e1" minOccurs="0" />
    <xs:element...
    See more | Go to post

  • HQM
    Guest started a topic .NET SDK 2.0: complex types with minOccurs = 0 and nillable = true
    in .NET

    .NET SDK 2.0: complex types with minOccurs = 0 and nillable = true

    If I create an element X of a primitive type with minOccurs=0 and
    nillable=true and run it through the WSDL generator I get a class with a
    property "X" of the primitive type plus a boolean "XSpecified " attribute to
    say if it was not specified rather than null. But if I have a complex type
    with minOccurs=0 and nillable=true you don't get the "XSpecified " property.
    This means you can't tell...
    See more | Go to post
Working...