XmlWriter help

Hi,
I am really new to Clover and have been trying my hands on different components. I am trying to generate a sample XML using the Clover API in my java code. But I am unable to understand how to add my port mapping definition for the XmlWriter.

The XmlWriter constructor requires the PortDefinition map. But the inner class PortDefinition in XmlWriter is protected and is not visible. So how do I create the mappings and then create an XmlWriter in Java? Is there a way to load the mappings otherwise?

I’m using clover version 2.7.2.

Thanks!

Hi Pokemon,
I’ve created an issue in our bug tracking system (http://bug.cloveretl.org/view.php?id=2790).
As a workaround I can advice you to write this node as an xml document and use fromXML method of XMLWriter object. Or write whole your graph in xml and create your TransformationGraph with usage of TransformationGraphXMLReaderWriter object as in cloverETL/examples/JavaExamples/testXMLGraph.java (http://www.cloveretl.com/download/examples/)

Hi Agata,
Thanks for the response!
I used java’s xml API to generate the node element for XmlWriter and then used the fromXml method to get the XmlWriter Node and added it to the graph. It worked fine for me.

Thanks,
Pramod