Skip to Main Content

Integration

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!

How to provide values for complex type elements in XSD?

HarshaSKSep 21 2015 — edited Sep 22 2015

Hi,

I am using JDev 11.1.1.7.0 and Weblogic 10.3. I am new to creating XSDs.

How to provide value to "Input" in the below case ? It is a complex type element having an attribute. When i am testing this on EM, i am not able to enter the value to this "Input". Only the attribute is available for entering values.

InputInEM.JPG

I have an XSD which looks like:

Design:

InputXSD.JPG

Source:

<?xml version="1.0" encoding="UTF-8" ?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

        xmlns="[http://www.example.org](http://www.example.org)"

        targetNamespace="[http://www.example.org](http://www.example.org)"

        elementFormDefault="qualified">

<xsd:element name="FormInput">

\<xsd:annotation>

  \<xsd:documentation>Attribute Example\</xsd:documentation>

\</xsd:annotation>

\<xsd:complexType>

  \<xsd:sequence>

    \<xsd:element name="Input">

      \<xsd:complexType>

        \<xsd:simpleContent>

          \<xsd:extension base="xsd:string">

            \<xsd:attribute name="InputAttribute" type="xsd:string"/>

          \</xsd:extension>

        \</xsd:simpleContent>

      \</xsd:complexType>

    \</xsd:element>

  \</xsd:sequence>

\</xsd:complexType>

</xsd:element>

<xsd:element name="FormOutput">

\<xsd:complexType>

  \<xsd:sequence>

    \<xsd:element name="Output">

      \<xsd:complexType>

        \<xsd:simpleContent>

          \<xsd:extension base="xsd:string">

            \<xsd:attribute name="OutputAttribute" type="xsd:string"/>

          \</xsd:extension>

        \</xsd:simpleContent>

      \</xsd:complexType>

    \</xsd:element>

  \</xsd:sequence>

\</xsd:complexType>

</xsd:element>

</xsd:schema>

Thanks a lot.

This post has been answered by 957742 on Sep 21 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 20 2015
Added on Sep 21 2015
2 comments
165 views