ilog.cpl.storage
.
InputSource
.
XMLReader
. You can modify the behavior of the XML reader before the
parsing takes place (for example, to disable the validation of
the XML schema).
IlpDataSourceLoader loader = new IlpDataSourceLoader(inputSource, dataSource); XMLReader reader = loader.getXMLReader(); reader.setFeature("http://xml.org/sax/features/validation",false); loader.parse();
<installdir>/tutorials/browser
final Object parentID = expandedObject.getIdentifier(); // Create an identifier factory that adds the parent ID as a prefix to // all identifiers read from the template. IlpIdentifierFactory idFactory = new IlpIdentifierFactory(){ public Object getIdentifier (Object previousIdentifier){ return parentID.toString() + "/" + previousIdentifier.toString(); } }; // Load the template into the datasource // Load the template objects under the parent node, and transform // their IDs so they are unique IlpDataSourceLoader loader = new IlpDataSourceLoader(templateFileName, mainDataSource); loader.setIdentifierFactory(idFactory); loader.setParentIdOfRootObjects(parentID); loader.parse();
ContentHandler
. This content handler can be used to feed a DOM tree for
example.
outputHierarchy(IlpObject)
. The
IlpObject
parameter and all its children (which are defined by the
container interface) are written to the file.
outputObject(IlpObject)
.