Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

You need an accompanying XSL document, this should help: http://webdesign.about.com/cs/xslinformation/a/aa051198.htm

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. w3schools.com/xsl –  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
add comment

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
add comment

Your Answer

 
discard

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.