03-04-2010, 04:28 AM
I've got a document with two character styles; everything is either one style or the other.
I want to take this Word document and convert the information into XML, for storage or parsing.
So, I want to surround every chunk of text that has the style questionText with and tags.
Then, surround every chunk of text that has the answerText style with and .
I can do RegEx, and am playing with Word's Find/Replace wildcards feature, but am just not seeing how to pull this off.
VBA would be good, but I'm on the Mac here. :-)
I want to take this Word document and convert the information into XML, for storage or parsing.
So, I want to surround every chunk of text that has the style questionText with
Then, surround every chunk of text that has the answerText style with
I can do RegEx, and am playing with Word's Find/Replace wildcards feature, but am just not seeing how to pull this off.
VBA would be good, but I'm on the Mac here. :-)