Forum How do I...?

XML Data

jonl
Does Prince support XML with attributes, similar to the structure below?

<?xml version="1.0" encoding="UTF-8"?>
<dogs>
<dog name="Homer" id="d001" size="medium" color="black and white" intelligence="smart" photo="p002" />
<dog name="Shasta" id="d004" size="large" color="white" intelligence="smart" photo="p001" />
<dog name="Calico" id="d002" size="small" color="brown" intelligence="stupid" photo="p003" />
</dogs>
mikeday
Prince supports XML, and you can use generated content to put attribute values in the printed output. What kind of PDF output are you trying to create? This kind of XML structure is very data-oriented, which may make it difficult to achieve some styles of output. A more narrative / document-oriented structure such as that found in HTML can be easier to work with, depending on what you are trying to do.