Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting Word doc Technical publication to XML

Status
Not open for further replies.

amillia

Programmer
Nov 14, 2001
124
US
We have around 200 Tech pubnical publications that we will be converting to xml. The have the xml already and all of the associated files. The problem is that the word documents do not have associated files so when they are imported everthing is clumped together as normal style. What is the best way to approach this should I write a vba to add styles to all the word docs before they are imported to xml so they will have the appropriate tags? or is there a way to create an xml template? It is just not practical to add the xml line by line to each of the 200 documents with over 2000 pages but i need to know which way to approach it and then I will go after it. Thank you.
 
You could save the doc as a web page, then use XSL to convert the file to your desired schema. The problem will be that word will not save it in a well-formed way, you'd need to write a script to make it well-formed (mainly addind quotes to attributes I think). Plus the XSL might be complicated. It may be quicker to write a vba.

Jon

"I don't regret this, but I both rue and lament it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top