Exporting valid XHTML/XML using a template?
Posted: Sat Dec 13, 2008 2:33 pm
I'm experimenting a bit with creating an 'ajax' driven HTML template using data from CDPedia.
Unfortunately I'm having some problems creating a template that exports valid XML. I am aware of exporting the collection as '.pedia' file, which contains all data as XML, but I try to create a couple of XML files containing, for example, all 'artists', all 'albums' etc.
The problem is, that CDpedia does not have an option to replace XML 'special' characters with entities (e.g. replace <, >, &, " and ' with <, >, &, " etc).
As a workaround I've exported all data as XML nodes, and wrapped them in 'CDATA' sections, but would prefer to include some data as 'attribute', which is easier to handle and reduces the filesize of the XML files.
My questions;
- Does CDpedia have an option or metatag for export-templates to do this?
- If not, are there any plans to add this feature?
Unfortunately I'm having some problems creating a template that exports valid XML. I am aware of exporting the collection as '.pedia' file, which contains all data as XML, but I try to create a couple of XML files containing, for example, all 'artists', all 'albums' etc.
The problem is, that CDpedia does not have an option to replace XML 'special' characters with entities (e.g. replace <, >, &, " and ' with <, >, &, " etc).
As a workaround I've exported all data as XML nodes, and wrapped them in 'CDATA' sections, but would prefer to include some data as 'attribute', which is easier to handle and reduces the filesize of the XML files.
My questions;
- Does CDpedia have an option or metatag for export-templates to do this?
- If not, are there any plans to add this feature?