I have a zip file which contains xml file into it . I have loaded this xml through EMF , I have one more xml file in a extracted folder . i have loaded this xml too through EMF .
Now , my requirement is to add the one element from extracted xml to zip xml and save
the xml file of zip file again to that zip file ,
Could anyone help me ?
More Details :
xml_1 location -> d://xml_folder/abc.zip
abc.zip contains xml_1.xml
xml_2 location -> d"//any_folder/xml_2.xml
Both xml_1 and xml_2 are of same type , ie is similar.
xml_1
<root>
<students>
<student>
<name>anuj</name>
</student>
</students>
</root>
xml_2
<root>
<students>
<student>
<name>john</name>
</student>
</students>
</root>
I want output as :
xml_1.xml look like this and it should be in same zip location
<root>
<students>
<student>
<name>anuj</name>
</student>
<student>
<name>john</name>
</student>
</students>
</root>
Could anyonne helop me inn doing this ?
No comments:
Post a Comment