Imported XML is Mangled

Topics: User Forum
Feb 26, 2007 at 5:20 PM
Edited Feb 26, 2007 at 5:21 PM
I am inserting some code (xml data) using the <code source=...> functionality. The resulting code in the help file is mangled. Am I doing something wrong?

My input is:

<?xml version="1.0" encoding="UTF-8"?>
<books xmlns:bk='http://www.example.com/books'
xmlns='http://www.example.com/books' >
<book>
<title>Everything that you Need to Know</title>
<author>I. M. Knowledgable</author>
<bk:price>15.50</bk:price>
</book>
</books>

My <code source=...> reference is:

<code source="XPathDemo.xml" numberLines="false" title="XPath Demo File" lang="xml" />

The mangled output (in the Books element namespace declarations) in the help file is:

<?xml version="1.0" encoding="UTF-8"?>
<books xmlnsbk='httpwww.example.com/booksxmlns='httpwww.example.com/booksbook>
<title>Everything that you Need to Know</title>
<author>I. M. Knowledgable</author>
<bk:price>15.50</bk:price>
</book>
</books>
Coordinator
Feb 26, 2007 at 8:08 PM
There's a bug in the way the attribute names are being parsed when they contain a colon. I'll get it fixed for the next release.

Eric
Feb 26, 2007 at 8:37 PM
Many thanks.

Jon