How to Generate DataXML in OpenXML for powerpoint in java

I have added one smart art shape in the Microsoft power point presentation slide. I have retrieved the data of that diagram in Java using apache POI.

I want to generate my Own DataXML for that presentation from scratch using apache poi or any other free java API. How i can generate that DataXML.

enter image description here

Presentation consists of hierarchy smart art object only.
Following is the XML from which i want to generate the Data XML.

<cds>
<parent name="Hierarchy Parent">
    <child id="1" name="Child 1"/>
    <child id="2" name="Child 2"/>
</parent>
<parent name="Hierarchy Parent 2">
    <child id="1" name="Child 1"/>
    <child id="2" name="Child 2"/>
</parent>


Source: xml

Leave a Reply