PHP를 사용하여 .xsd 파일을 배열로 변환해야합니다. 사용자 측면에서 동적 xsd가 있고 PHP에서 배열을 생성하는 PHP 코드가 필요합니다..xsd 파일을 PHP의 배열로 변환하는 방법
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="shiporder">
<xs:complexType>
<xs:sequence>
<xs:element name="orderperson" type="xs:string"/>
<xs:element name="shipto">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="address" type="xs:string"/>
<xs:element name="city" type="xs:string"/>
<xs:element name="country" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="item" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string"/>
<xs:element name="note" type="xs:string" minOccurs="0"/>
<xs:element name="quantity" type="xs:positiveInteger"/>
<xs:element name="price" type="xs:decimal"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="orderid" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>
이 이해가되지 않습니다보십시오. 배열 대신에 유형을 의미 했습니까? PHP에도 유형이 있습니까? – leppie
네가 http://stackoverflow.com/questions/2263771/generate-php-classes-from-xsd – Robert
을 확인했는데 유용하지는 않습니다. – Parvez1487