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

15.3 The resulting XML

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

For example, in the following QuarkXPress text, which has been mapped to the Paragraph 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 WonderlandTM 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 <B> 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.