Hi, AHHP!
I do as in your last post.
And now some problems again!
1. XML code created with
xml.format.inc.php (format=xml) don’t want work in browser. There are my problem:
- file create heder:
-----------------------------------------------------------------
<?xml version="1.0" encoding="" ?>
-----------------------------------------------------------------
there are no encode - in modx select UTF-8
I insert encoding direct into
xml.format.inc.php.
File opened in browser without errors.
Now 2 problem.
When I create snippet and insert it to yhe blank document, I get tegs <p> and </p> in beginning and end of document.
When XML file formed I see:
-----------------------------------------------------------------
<p><?xml version="1.0" encoding="UTF-8" ?>
<xml version="2.0" xmlns:dc="
http://purl.org/dc/elements/1.1/">
<channel>
---
body of document
---
</channel>
</xml>
</p>
-----------------------------------------------------------------
And I get error message:
XML declaration not at beginning of document
What can I do?