Solved

Export MS Word HTML into valid, XHTML table?

Posted on 2004-08-03
4
590 Views
Last Modified: 2013-12-16
We have employees in another department who post data to our website via an online form we'd set up for them.  The form automatically generates basic HTML (paragraph tags, bold tags, italics, etc.).

The employees often want to post long HTML tables that they'd generated in MS Word.  Unfortunately, if we ask these employees to save these as an HTML file, MS Word generates some pretty hideous code and many unnecessary, Microsoft-specific tags.  Usually the ending code is so large that it crashes our online form, since online forms have a maximum byte amount they can pass at any given time (no joke, these tables are often quite huge).

Is there any tool out there that can parse MS Word-generated table data and recreate a table into tight, XHTML format?  We're trying to avoid the time necessary to program our own robust, MS Word HTML parser, since this is such a low priority item (but not so low that the subject of doing this comes up once every year)
0
Comment
Question by:cacklebunny
  • 2
4 Comments
 
LVL 31

Accepted Solution

by:
seanpowell earned 100 total points
ID: 11705480
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 11705484
It won't be perfect, but it will be 90% better...
0
 
LVL 19

Expert Comment

by:webwoman
ID: 11710004
Develop a macro, put it in all the normal.dot templates, and show them how to use it. Not only should you be able to format the table, you can convert the quotes, set the bold/italic/etc., and even add styles to the tags.

Then YOU control what gets generated, not MS.
0
 
LVL 2

Author Comment

by:cacklebunny
ID: 11712059
Thanks, Sean --at last something that works! :)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now