Atomik Xport SE: Reference > Chapter 15 Extracting Styling Information << >>

15.3 The resulting XML

Once you have added the styling DTD elements to your DTD and created a new ruleset which includes them, you are ready to create the XML for your document. This process is exactly the same as usual only the resulting XML will indicate any styling changes in the textual content for each DTD element that includes the styling Elements in your DTD.

For example, in the following InDesign text, which has been mapped to the Paragraph DTD element, the word ‘Wonderland’ is in a bold style and uses the superior style for the trademark symbol next to ‘Wonderland’.

A character goes into a Wonderland™ trance to bring her back to her childhood and free up her inhibitions so she can solve her psychological problems.

This is how this Paragraph text will appear in the extracted XML with the styling DTD Elements included:

<Paragraph>A character goes into a <B>Wonderland<superior> 
TM</superior></B> trance to bring her back to her childhood
and free up her inhibitions so she can solve her psychological
problems.</Paragraph>

In this case the Bold tag is opened at the start of the word ‘Wonderland’, the Superior tag is opened before the ‘TM’ and then both tags are closed after this. If you are familiar with HTML you will recognise the similarities with how text is styled in HTML.