One way you could achieve this is:
XSD:
<xsd:complexType name="EmployeeList">
<xsd:sequence>
<xsd:element name="Employee" type="EmployeeList_T" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="EmployeeList_T">
<xsd:sequence>
<xsd:element name="employeeID" type="xsd:integer" />
<xsd:element name="employeeName" type="xsd:string" />
<xsd:element name="employeeAddress" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
PHP
$sth = $this->PDO->prepare("SELECT employeeID, employeeName, employeeAddress FROM EMPLOYEE;");
$sth->execute();
$employeeList = SCA::createDataObject('your/xsd/namespace', 'EmployeeList');
while($row = $sth->fetch(PDO::FETCH_OBJ)){
$employee = $employeeList->createDataObject('Employee');
$employee->employeeID = $row->employeeID;
$employee->employeeName = $row->employeeName;
$employee->employeeAddress = $row->employeeAddress;
}
There is probably a nicer way to merge the resulting row object into the SDO object, but you get the idea.
HTH
dali