Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optional Field/element in output
Message
From
28/07/2007 09:48:40
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
01244346
Message ID:
01244352
Views:
23
>>Yes, Borislav - thanks, I know that, but I would like the line to disappear from the output, ie no tag field
>>
>>Based on a condition I have to output either A1 or A2, but not both
>
>Why?

Below a part of a schema
- <xs:complexType>
- <xs:sequence>
- <xs:choice>
  <xs:element ref="QUARTER" /> 
  <xs:element ref="MONTH" /> 
  </xs:choice>
  <xs:element ref="YEAR" /> 
  </xs:sequence>
  </xs:complexType>
So I have to produce
either

<PERIOD>
   <QUARTER>1</QUARTER>
   <YEAR>2007</YEAR>
</PERIOD>

or

<PERIOD>
   <MONTH>3</MONTH>
   <YEAR>2007</YEAR>
</PERIOD>
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform