Thank for the reply Trevor, Here’s the code where I assign a value to the accessor
// Obtain the concrete TXMLObjectAccessor using the JDOM object model
accessor = connection.newXMLObjectAccessor(TAccessLocation.newInstance(collection), TJDOMObjectModel.getInstance());
I’ve also attached the whole java program. Thanks CreateNew.java (4.94 KB)
In your code you assign values to the “connection” and “accessor” fields in the “CreateNew” constructor - but unfortunately this constructor is never called!
I would recommend making the “connection” and “accessor” fields local to the main method, and initializing them just before usage.