다른 고객, 주소 및 계정 유형의 3 가지 일반 목록이 있다고 가정 해 봅니다. 어떻게 그들을 'CustomerProfile'유형의 일반적인 목록으로 결합합니까? 당신이 할 수없는,다른 유형의 일반 목록을 하나의 일반 사용자 정의 유형 목록에 결합하려면 어떻게합니까?
<CustomerProfile>
<Customer>
<customerId>
<titleId>
<firstName>
<middleName>
<maritalStatusId>
</Customer>
<Address>
<addressId>
<customerId>
<addressTypeId>
<postCode>
<geoCodeLattitude>
<geoCodeLongitude>
</Address>
<Account>
<accountID>
<accountDesc>
<accountStatusID>
<joinDate>
<insertDateTime>
</Account>
</CustomerProfile>
'x has' 패턴이 아니고'x is' 패턴이기 때문에 인터페이스로 이동해야합니다 –
XML은 어디서 들어 옵니까? 귀하의 질문은 현재 명확하지 않습니다 ... 당신은 CustomerProfile 클래스가 있습니까? http://tinyurl.com/so-hints –