Hi Everyone,

I currently have about 30 Word templates which I'm looking at converting
into XML format for eventual printing out as PDFs. The word documents have a
number of bookmarks on them which are used via a VB app to fill with data
and then display the final word document (complete with data ) to the user
for printing, etc. I want to convert them to a more "clean" type of XML
without all the microsoft stuff throughout it.

I have opened the templates in writer, and the majority of the bookmarks
have come accross successfully which is great. My problem is that any
bookmarks which span other bookmarks do not keep their span.

For instance, the XML from Word looks like this:-
aml:annotation aml:id="*21*" w:type="*Word.Bookmark.Start*" w:name="*bmk*"
aml:annotation aml:id="*22*" w:type="*Word.Bookmark.Start*" w:name="*bmk2*"
Some other text
aml:annotation aml:id="*22*" w:type="*Word.Bookmark.End*" w:name="*bmk2*"
aml:annotation aml:id="*21*" w:type="*Word.Bookmark.End*"

In Writer, when I export as XML, it looks like this:-
text:bookmark text:name="*bmk*" /
text:bookmark-start text:name="*bmk2*" /
some other text
text:bookmark-end text:name="*bmk2*" /

Does anyone have any idea how I can keep the bookmarks surrounding others
like in the Word document?

Any help would be greatly appreciated.

Thanks in advance -- Stuart

Reply via email to