Solved

Export MS Word HTML into valid, XHTML table?

Posted on 2004-08-03
4
597 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

749 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