[pmwiki-users] PmWiki as XML source ?
Christophe David
pmwiki at christophedavid.org
Fri Jul 20 11:07:07 CDT 2007
> Wouldn't we also need at least a <?xml ...?> tag at
> the beginning?
The specs are :
"The root element can be preceded by an optional XML declaration. This
element states what version of XML is in use (normally 1.0); it may
also contain information about character encoding and external
dependencies.
<?xml version="1.0" encoding="UTF-8"?>"
So yes, this may be added.
> As a start, see
> http://www.pmwiki.org/wiki/Test/XMLTest?skin=xml
I cannot check easly the http header right now, but it needs to be text/XML
To please the XML parser, the data may not contain '<' or '>', unless
enclosed between
<![CDATA[ and ]]>
So we want in this example
<?xml version="1.0" encoding="UTF-8"?>"
<PmWikiXML>
<link><![CDATA[
<a href='http://www.pmwiki.org/wiki/PmWiki/PmWiki'>PmWiki</a>
]]></link>
<link><![CDATA[
<a href='http://www.pmwiki.org/wiki/PmWiki/AdminTask'>Admin Task</a>
]]></link>
</PmWikiXML>
Christophe
---
More information about the pmwiki-users
mailing list