Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Conversions / October 2005

Tip: Looking for answers? Try searching our database.

customised XML from Word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Abhishek - 13 Oct 2005 07:45 GMT
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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.