Hi,
In XML Schema the attribute "default" for the element doesn't create element when it's absent but only supplies value when it's empty. I need elements that do not exist in XML to be created by schema.
I have XML file:
<myelement1>1</myelement1>
<myelement2>2</myelement2>
And schema:
<xs:element name="myelement1" default="1" minOccurs="0"/>
<xs:element name="myelement2" default="2" minOccurs="0"/>
<xs:element name="myelement3" default="3" minOccurs="0"/>
I want result to be
<myelement1>1</myelement1>
<myelement2>2</myelement2>
<myelement3>3</myelement3>
Thank you,
Vladas
P.S. I am not sure if schema will do that for me. As I found out XML schemas and XSL Transformations are somewhat limited and sometimes you have to code some transformation i.e. with
Java. I hope this not the case