This problem can be sort out if i will convert the msword into standard xml document.
Kushagra Bindal wrote:Hi All,
I want to convert MSWord document to XML. I want to follow the same steps as I am following currently from the frontend on ms-word docs with my java code also.
1. Open the MsWord docs.
2. Click on the saveas option.
3. select .xml as its save type.
4. save it.
By doin so whole data will be converted into the different nodes and tags.
This I want to follow with my java code. Is there is any API by which I can convert my ms-Word Doc to xml or any other way by which I can convert the ms-word document to xml.
Please help me if anybody having answer of it.
krithika shekhar wrote:Similar is my requirement . I have to convert a MSword doc to XML.Apache Poi only reads it.What do i do for converting it to XML?
Ulf Dittmer wrote:
What, exactly do you mean by "convert"? Create the XML file? There are multiple XML libraries available that can do that: DOM, JDOM, XOM, ...
Nilesh Chavan wrote:Dear Kritika,
Could you please share the sample code that you have written for reading the word document and then putting the contents read into the well formed XML document.
I'm new to this POI concepts. Your help will be highly appreciated.