Develop > Presentation layer > Work with JSP pages > WebSphere Commerce JSP viewer > Create XML files using the XMLGenerator
Install the data bean to XMLGenerator
The XMLGenerator takes an already populated WebSphere Commerce data bean and prints out an XML file based on it. Since the XMLGenerator is going to print out an XML file based on real WebSphere Commerce data, install it into the WebSphere Commerce workspace.
To set up the XMLGenerator tool:
Procedure
- Navigate to the WCDE_INSTALL\samples\PreviewTools\DatabeanToXML directory.
- Copy the DataBeanToXML.jar file to the WCDE_INSTALL\workspace\Stores\WebContent\WEB-INF\lib directory.
- Copy all of the JSP files from the jsps subdirectory to the WCDE_INSTALL\workspace\Stores\WebContent directory.
- Copy all of the properties files from the jsps subdirectory to the WCDE_INSTALL\workspace\Stores\Java Resources: src directory.
- Copy the DatabeanToXMLViewsACPolicy.xml file from the xml subdirectory to the WC_EAR\xml\policies\xml directory.
- Copy the DatabeanToXMLRegistry.xml file from the xml subdirectory to the WCDE_INSTALL\schema\xml directory.
- Start a command prompt session.
- Change to the bin directory.
- Run the acpload utility:
- database_name database_user database_user_password DatabeanToXMLViewsACPolicy.xml schema_name
- acpload DatabeanToXMLViewsACPolicy.xml
- Run the massload utility:
- massload ..\schema\xml\DatabeanToXMLRegistry.xml database_name database_user database_user_password schema_name
- massload ..\schema\xml\DatabeanToXMLRegistry.xml
- Restart the WebSphere Commerce Server.
Results
You can now use the data bean to XMLGenerator. The next step is to generate an XML file using the XMLGenerator.
Next topic: Generate an XML file using the data bean to XMLGenerator
Related concepts
Related tasks
Create XML files using the XMLGenerator