Bonjour,
je souhaite créer le xsd correspondant au xml suivant :
.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 <serviceproxy:service interface="com.bnppf.ssc.imb.ee.hello.GreetingInterface"> <mappingMethod methodName="a" jrfMethodId="b"/> <mappingMethod methodName="c" jrfMethodId="d"/> </serviceproxy:service>
J'ai bien essayé avec
mais j'ai une erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 <xsd:schema xmlns="http://..../schema/serviceproxy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://..../schema/serviceproxy" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xsd:element name="service" type="service-type"> </xsd:element> <xsd:complexType name="service-type"> <xsd:sequence minOccurs="0" maxOccurs="unbounded"> <xsd:element name="mappingMethod" type="mappingMethodType" /> </xsd:sequence> <xsd:attribute name="interface" type="xsd:string" use="required"> </xsd:attribute> </xsd:complexType> <xsd:complexType name="mappingMethodType"> <xsd:attribute name="methodName" type="xsd:string"/> <xsd:attribute name="jrfMethodId" type="xsd:string"/> </xsd:complexType> </xsd:schema>
MerciInvalid content was found starting with element 'mappingMethod'. One of '{"http://..../serviceproxy":mappingMethod}' is expected.
Partager