Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 在oraclesoasuite11g中建模递归业务对象_Xml_Soa_Oracle11g_Business Objects - Fatal编程技术网

Xml 在oraclesoasuite11g中建模递归业务对象

Xml 在oraclesoasuite11g中建模递归业务对象,xml,soa,oracle11g,business-objects,Xml,Soa,Oracle11g,Business Objects,我正在尝试使用JDeveloper11G对一个复杂的业务对象(名为Prenda)建模,该对象包含同一类型对象(Prenda)的属性 这是我的xsd: <?xml version="1.0" encoding="UTF-8"?> <?bpmo version="11.1.1" build="6.84" fullName="Mx.Org.Frd.Bo.Prenda" modifiers="0"?> <!--################################

我正在尝试使用JDeveloper11G对一个复杂的业务对象(名为Prenda)建模,该对象包含同一类型对象(Prenda)的属性

这是我的xsd:

<?xml version="1.0" encoding="UTF-8"?>
<?bpmo version="11.1.1" build="6.84" fullName="Mx.Org.Frd.Bo.Prenda" modifiers="0"?>
<!--########################################################################################-->
<!--####                                                                                ####-->
<!--####          THIS IS AN AUTO GENERATED FILE. PLEASE DO NOT MANUALLY MODIFY         ####-->
<!--#### CHANGES TO THIS FILE MAY PRODUCE UNEXPECTED BEHAVIOR AND WOULD BE OVERWRITTEN  ####-->
<!--####                                                                                ####-->
<!--########################################################################################-->
<xs:schema targetNamespace="http://xmlns.oracle.com/bpm/bpmobject/Mx/Org/Frd/Bo/Prenda" xmlns:xs="http://www.w3.org/2001/XMLSchema"  xmlns:ns3="http://xmlns.oracle.com/bpm/bpmobject/Mx/Org/Frd/Bo/Reloj"  xmlns:ns2="http://xmlns.oracle.com/bpm/bpmobject/Mx/Org/Frd/Bo/Metal"  xmlns:ns1="http://xmlns.oracle.com/bpm/bpmobject/Mx/Org/Frd/Bo/Diamante"  xmlns="http://xmlns.oracle.com/bpm/bpmobject/Mx/Org/Frd/Bo/Prenda"  xmlns:bpmo="http://xmlns.oracle.com/bpm/bpmobject/" >
    <xs:import namespace="http://xmlns.oracle.com/bpm/bpmobject/Mx/Org/Frd/Bo/Reloj" schemaLocation="Reloj.xsd"/>
    <xs:import namespace="http://xmlns.oracle.com/bpm/bpmobject/Mx/Org/Frd/Bo/Diamante" schemaLocation="Diamante.xsd"/>
    <xs:import namespace="http://xmlns.oracle.com/bpm/bpmobject/Mx/Org/Frd/Bo/Metal" schemaLocation="Metal.xsd"/>
    <xs:import namespace="http://xmlns.oracle.com/bpm/bpmobject/Mx/Org/Frd/Bo/Prenda" schemaLocation="Prenda.xsd"/>
    <xs:complexType name="PrendaType">
        <xs:sequence>
            <xs:element name="id" nillable="true" type="xs:long"/>
            <xs:element name="valor" nillable="true" type="xs:decimal"/>
            <xs:element name="precioVenta" nillable="true" type="xs:decimal"/>
            <xs:element name="fechaCreacion" nillable="true" type="xs:dateTime"/>
            <xs:element name="fechaModificacion" nillable="true" type="xs:dateTime"/>
            <xs:element name="tipoPrenda" nillable="true" type="xs:string">
                <xs:annotation>
                    <xs:documentation>
                        <bpmo:documentable>
                            <bpmo:description>
                                prenda, grupo, elemento
                            </bpmo:description>
                        </bpmo:documentable>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="tipoElemento" nillable="true" type="xs:string">
                <xs:annotation>
                    <xs:documentation>
                        <bpmo:documentable>
                            <bpmo:description>
                                diamante, metal
                            </bpmo:description>
                        </bpmo:documentable>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="diamante" type="ns1:DiamanteType"/>
            <xs:element name="metal" type="ns2:MetalType"/>
            <xs:element name="reloj" type="ns3:RelojType"/>
            <xs:element name="padre" type="PrendaType"/>
        </xs:sequence>
    </xs:complexType>
    <xs:element name="Prenda" type="PrendaType"/>
</xs:schema>
知道如何做到这一点吗?我在考虑像heritage这样的东西,但是IDE没有显示扩展XSD的选项,所以我不知道这是否可行


谢谢

只需删除导入语句

<xs:import namespace="http://xmlns.oracle.com/bpm/bpmobject/Mx/Org/Frd/Bo/Prenda" schemaLocation="Prenda.xsd"/>

你会没事的

<xs:import namespace="http://xmlns.oracle.com/bpm/bpmobject/Mx/Org/Frd/Bo/Prenda" schemaLocation="Prenda.xsd"/>