Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to convert a Word document into an easily parseable format, so I chose XML. I found a tool which works, but it doesn't tell me which font the text is, which is my main method of parsing. Is there any tool that preserves this information or a link to a tutorial that provides code?

share|improve this question

You need an accompanying XSL document, this should help:

share|improve this answer
Could you add some more detail about how I would use the XSL document? – gsingh2011 Feb 27 '12 at 21:53
Have you tried the online example at W3C, they have a demo you can try out? I've never had to style XML so dont have a personal example I can show you but looking at this demo it looks pretty straight forward. – xXPhenom22Xx Feb 27 '12 at 22:07
Not sure what context is your doing this but if it is web development its much easier to style the outputted XML via CSS – xXPhenom22Xx Feb 27 '12 at 22:21

Word 2012 (and Word 2007 via add-in) can store Word documents in WordML (.docx) with is an xml format.

This format is easily parsable - there are libraries for several languages, and some, like .NET have built-in parsing capabilities.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.