I've searched and searched for my problem, and this is my last hope.
Apache Maven 1.x uses Dom4j for various xml processing and provides a
Jelly tag for parsing XML into a DefaultDocument. I'm experiencing
Unicode characters being translated into "?" and the hooks are
definitely not what I need.
I've replaced the 1.4 version shipped with Maven to 1.6.1 and have
created a simple test goal in order to replicate the behavior. I've
tried to two different ways of parsing the file, one through using a
StringReader that's opened a file in UTF-8, and the other using the
default xml:parse tag in Jelly. Both with the same results. So, my
question is, has anyone else experienced anything similar? Should I be
posting my question on the Maven list? Any ideas?
Thanks in advance,
-RR-
---begin sample xml---
<?xml version="1.0"?>
<!DOCTYPE accounts[
<!ELEMENT accounts (reportDate,account+)>
<!ELEMENT reportDate (date,time)>
<!ELEMENT date (#PCDATA)>
<!ELEMENT time (#PCDATA)>
<!ELEMENT account (balance, interestRate*)>
<!ATTLIST account
number CDATA #REQUIRED
type CDATA #REQUIRED>
<!ELEMENT balance (#PCDATA)>
<!ELEMENT interestRate (#PCDATA)>
]>
<accounts>
<reportDate>
<date>Oct 2, 2001</date>
<time>8:15 am</time>
</reportDate>
<account number="987457" type="savingsÅ">
<balance>6821.48 Å</balance>
<interestRate>2.9%</interestRate>
</account>
</accounts>
---end sample xml---
---being result snippet---
[echo] [EMAIL PROTECTED] [Element: <accounts
attributes: []/>]
[echo] Oct 2, 2001
[echo] 8:15 am
[echo] [EMAIL PROTECTED] [Element: <account
attributes: [EMAIL PROTECTED] [Attribute: name
number value "987457"], [EMAIL PROTECTED]
[Attribute: name type value "savings? ?"]]/>]
[echo] 6821.48 ?
---end result snippet---
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user