상위 오브젝트에서 유형 xsd:any를 지정하면 하위 오브젝트가 이미 있는 경우에만 하위 오브젝트를 지정할 수 있습니다.
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:complexType name="Parent"> <xsd:sequence> <xsd:element name="name" type="xsd:string"/> <xsd:element name="child" type="xsd:anyType"/> </xsd:sequence> </xsd:complexType> </xsd:schema>
하위 데이터 오브젝트가 존재하지 않는 경우 예외가 처리됩니다.