Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Conversion of XSD to XML

Dilbagh-OracleMay 15 2009 — edited Aug 21 2009
Hello Gurus,

I have a requirement of converting an XML Schema (XSD) to a template XML. An example snippet can be seen below:

XSD:
------

<s:schema targetNamespace="http://xmlns.oracle.com/helloworld">
<s:element name="MyWebServiceInput">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Parameter1" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="Parameter2" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>


XML to be generated:

<MyWebServiceInput targetNamespace="http://xmlns.oracle.com/helloworld">
<Parameter1> A String parameter</Parameter1>
<Parameter2> A String parameter</Parameter2>
</MyWebServiceInput>

Can you please point me to ways using which I can implement it.

Thanks,
Dilbagh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 18 2009
Added on May 15 2009
4 comments
4,349 views