Вот что я думаю, следующая схема XML поможет вам решить вашу проблему.
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/Class" xmlns:tns="http://www.example.org/Class" elementFormDefault="qualified">
<element name="A" type="tns:A"></element>
<simpleType name="property">
<restriction base="string"></restriction>
</simpleType>
<complexType name="B">
<sequence>
<element name="property" type="tns:property"></element>
</sequence>
</complexType>
<complexType name="A">
<sequence>
<element name="property" type="tns:property"></element>
<element name="B" type="tns:B" maxOccurs="unbounded" minOccurs="0"></element>
</sequence>
</complexType>