Build the XML Document object using JDBC ResultSet

yygyyg

New Member
We are getting Cursor in JDBC ResultSet object.Now i have to build the complex XML document object using ResultSet. Currently i have been building document object in procedural way.Now is there any Object oriented way to simplify the xml document building logic.so that it can accommodate the future changes also.I have following structure of xml document,\[code\]<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> \[/code\]Any help is appreciated.
 
Back
Top