Posts Tagged ‘XML’

XML Entities

// September 23rd, 2008 // No Comments » // XML

For a project I was working on we needed to reuse a fair chunk of XHTML within an XML file, the best way around this was to use a custom entity.

<?xml version="1.0"?>
<!DOCTYPE vehicles [
<!ENTITY tabdata "<p>XHTML content goes here</p>">
]>
<vehicles>
<vehicle>&tabdata;</vehicle>
</vehicles>