JDBC ResultSet 객체에서 Cursor를 얻고 있습니다. 이제 ResultSet을 사용하여 복잡한 XML 문서 객체를 작성해야합니다. 현재 절차 적으로 문서 객체를 구축하고 있습니다.JDBC ResultSet을 사용하여 XML 문서 객체 빌드
이제 XML 문서 작성 로직을 단순화 할 수있는 객체 지향 방법이 있습니다. 따라서 향후 변경 사항도 수용 할 수 있습니다. 어떤 도움에 감사드립니다
<Response>
<BillingInformation>
<BillingID>
<Identifier>
</Identifier>
</BillingID>
<BillInfo>
<ID>
<Identifier>
</Identifier>
</ID>
<BillingCustomerName>
</BillingCustomerName>
<AlternateID>
<Identifier>
</Identifier>
<Type>
</Type>
</AlternateID>
<PostalAddress>
<ID>
<Identifier>
</Identifier>
<Type>
</Type>
</ID>
<StreetAddress>
<AddressContent>
</AddressContent>
<AddressContent>
</AddressContent>
</StreetAddress>
<City>
</City>
<State>
</State>
<Country>
</Country>
<Zip>
</Zip>
<Status>
</Status>
</PostalAddress>
<Contact>
<ContactId>
<Identifier>
</Identifier>
<Type>
</Type>
</ContactId>
<AlternateContactId>
<Identifier>
</Identifier>
<Type>
</Type>
</AlternateContactId>
<ContactName>
<FirstLastName>
<FirstName>
</FirstName>
<LastName>
</LastName>
</FirstLastName>
</ContactName>
</Contact>
<Status>
</Status>
</BillInfo>
</BillingInformation>
</Response>
내가 XML 문서의 구조 다음 한
.
JDK/JRE에 포함 된 JAXB (JSR-222) 구현이 동일한 유스 케이스를 쉽게 처리 할 수있는 경우 외부 종속성을 도입하는 이유는 무엇입니까? http://blog.bdoughan.com/2010/10/how-does-jaxb-compare-to-xstream.html –