A continuacion se muestra un ejemplo de un XSD para poder establecer una estructura de (property-value).
01 | < element name = "process" > |
02 | < complextype > |
03 | < sequence > |
04 | < element name = "type" type = "string" minoccurs = "0" > |
05 | </ element ></ sequence > |
06 | </ complextype > |
07 | </ element > |
08 | < element name = "processResponse" > |
09 | < complextype > |
10 | < sequence > |
11 | < element name = "resultList" > |
12 | < complextype > |
13 | < sequence > |
14 | < element name = "propertyValue" type = "ns1:propertyValue" maxoccurs = "unbounded" > |
15 | </ element ></ sequence > |
16 | </ complextype > |
17 | </ element > |
18 | </ sequence > |
19 | </ complextype > |
20 | </ element > |
21 | |
22 | |
23 | |
24 | < complextype name = "propertyValue" > |
25 | < simplecontent > |
26 | < extension base = "string" > |
27 | < attribute name = "name" type = "string" > |
28 | </ attribute > |
29 | </ extension > |
30 | </ simplecontent > |
31 | </ complextype > |
XML de Ejemplo:
1 | <!--xml version="1.0" encoding="UTF-8" ?--> |
2 | < processresponse xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation = "http://xmlns.oracle.com/Test/TestPayableInvoiceEBS/TestPayableInvoiceEBS PropertyValue.xsd" xmlns = "http://xmlns.oracle.com/Test/TestPayableInvoiceEBS/TestPayableInvoiceEBS" > |
3 | < resultlist > |
4 | < propertyvalue name = "nombrePropiedad" >Valor</ propertyvalue > |
5 | </ resultlist > |
6 | </ processresponse > |
No comments:
Post a Comment