How do I use XML as a POJO Scripted Data Source?
BIRT Supports an XML data source. See the examples page for a demonstration. Another method is to use the Scripted Data Source to communicate to Java objects that are used to parse and interogate the raw XML. Scripted Data Sources always have three basic tasks: • Open – Initialize connections and Instantiate required Java Objects • Fetch – Bind values to the dataSetRow • Close – Clean up any connections and Java Objects The following code is typical for an open method. In this case we are creating a URL object, and a DataInputStream to that object.