I want to extract an XML from wordm but I want it in my own format
Here is an example of what I need
This is an XML generated from Word I need it simple format
<w:p>
<w:r>
<w:t>This testing is for the conversion of Word doc to XML and also to
test for</w:t>
</w:r>
- <w:r>
- <w:rPr>
<w:b />
</w:rPr>
<w:t>BOLD</w:t>
</w:r>
- <w:r>
<w:t>and</w:t>
</w:r>
- <w:r>
- <w:rPr>
<w:i />
</w:rPr>
<w:t>ITALICS</w:t>
</w:r>
- <w:r>
<w:t>and this is</w:t>
</w:r>
- <w:r>
- <w:rPr>
<w:u w:val="single" />
</w:rPr>
<w:t>UNDERLINE</w:t>
</w:r>
- <w:r>
<w:t>and this is</w:t>
</w:r>
- <w:r>
- <w:rPr>
<w:b />
<w:i />
<w:u w:val="single" />
</w:rPr>
<w:t>BOLD,ITALICS,AND UNDERLINE</w:t>
</w:r>
</w:p>
I need it like
<p><font name="Times New Roman" size="10">This testing is for the conversion
of Word doc to XML and also to test for<b>BOLD</b>and
<i/> ITALICS</i>and this is<u> UNDERLINE</u>and this is
<b><i><u> BOLD,ITALICS,AND UNDERLINE</b></i></u></font></p>
How can I acheive this
Is there any method where in I can ask the word to export the XML in this
format or any other customised format.
I would appreciate all suggestions and solutions
Regards,
Abhishek
redog6@hotmail.com - 18 Oct 2005 09:22 GMT
Have you tried saving the document as HTML - as this is what you seem
to want?
Redge
Abhishek - 19 Oct 2005 12:00 GMT
Yes I have trid this
But this does not work since it generates Styles based HTML i.e It defines
styles for all the text runs
> Have you tried saving the document as HTML - as this is what you seem
> to want?
> Redge
Bob Buckland ?:-) - 19 Oct 2005 14:22 GMT
Hi Abhishek,
If you're using Word 2003 professional edition you may be
able to apply a transform such as the one on Brian Jones blog
at http://blogs.msdn.com/brian_jones/archive/2005/09/30/475794.aspx
=======
Yes I have trid this
But this does not work since it generates Styles based HTML i.e It defines
styles for all the text runs >>

Signature
Let us know if this helped you,
Bob Buckland ?:-)
MS Office System Products MVP
*Courtesy is not expensive and can pay big dividends*
For Everyday MS Office tips to "use right away" -
http://microsoft.com/events/series/administrativetipsandtricks.mspx