StrataFrame Forum

Business objects and XML data

http://forum.strataframe.net/Topic12626.aspx

By MarcoR - 11/12/2007

Is it possible to design the business objects based upon an XML schema and populate them based upon an XML file?
By MarcoR - 11/12/2007

P.S. The data would come in a format defined by an external system, not a dataset in XML format.
By Trent L. Taylor - 11/13/2007

Yes.  Look at the sample that comes with the framework titled "XML Data Source through Business Object."  One thing that you can do to produce the strong-typed properties is create a Faux table in the DDT and then map to that DDT table ( you will never deploy the DDT table is it is just for mapping).  Then use the CopyDataFrom method to load the BO.
By MarcoR - 12/3/2007

Can you also generate the business object from an XSD or do you have to use a table?
By StrataFrame Team - 12/7/2007

To generate the schema for the business object, you have to create a table within the Database Deployment Toolkit and build the business object from it.  You don't have to deploy that table to a SQL Server or anything, it just has to be there to map to it for the BOMapper structure reference.