This interface provides the mechanisms for serializing and deserializing an XML document.
This interface is used to serialize and deserialize a business graph or a graph of business objects.
This is an example of the BOXMLSerializer interface.
BOFactory factoryService = BOFactory) new ServiceManager().locateService("com/ibm/websphere/bo/BOFactory"); BOXMLSerializer xmlSerializerService =`(BOXMLSerializer) new ServiceManager().locateService("com/ibm/websphere/bo/BOXMLSerializer"); // Create the business object graph. DataObject productCategoryBG = factoryService.create ("http://www.scm.com/ProductCategoryTypes/ProductCategoryBG", "ProductCategoryBG"); DataObject productCategory = productCategoryBG.createDataObject("productCategory"); DataObject product = productCategory.createDataObject("product"); DataObject productCategory3 = productCategoryBG3.createDataObject("productCategory"); FileOutputStream outfile2 = new FileOutputStream("productCategoryBGDocument.xml"); xmlSerializerService.writeXMLDocument(productCategoryBGDoc, outfile2); FileInputStream infile2 = new FileInputStream("productCategoryBGDocument.xml"); BOXMLDocument productCategoryBG4Document = xmlSerializerService.readXMLDocument(infile2); DataObject productCategoryBG5 = productCategoryBG4Document.getDataObject();
Parent topic: Programming interfaces
Related reference
BOChangeSummary
BOCopy
BODataObject
BOEquality
BOEventSummary
BOFactory
BOType
BOTypeMetadata
BOXMLDocument
Related information
Interface BOXMLSerializer APIs
Last updated: Tue Sep 20 03:22:36 2005
Copyright IBM Corporation 2005.
This information center is powered by Eclipse technology (http://www.eclipse.org)