0

This is my input structure to the API,'search serves'

<structure name="SearchServesInput" >
<member name="ClientUser" target="Username" />
<member name="OwnerUser" target="Username" />
<member name="ServiceName" target="String" />
<member name="EnableSearch" target="Boolean" />
<member name="PanControls" target="PanControls" />   </structure>

At least 1 of the first three fields is required. How do I implement that?

dda
  • 6,030
  • 2
  • 25
  • 34
  • i think you have to declare a schema. May be you can watch the answer there http://stackoverflow.com/questions/2777352/xml-schema-can-i-make-some-of-an-attributes-values-be-required-but-still-allow – vincent Sep 15 '15 at 09:07

1 Answers1

0

You will have to declare a schema, here is a small example:

<?xml version="1.0"?>
<xs:schema>
<xs:attribute name="test" type="xs:string" use="required"/>
</xs:schema>

You can check here some tutorials.

Bruno Caceiro
  • 7,035
  • 1
  • 26
  • 45