Martin,

When you say submit, what do you do? Can you provide snippets of the code? How do you "write" out the DOM tree? Are you using an org.dom4j.io.OutputFormat instance combined with the XmlWriter?

More info please. ;-)

Thanks,
Dave

Martin Gross wrote:
hi,

 this is probably a very basic question, but I still haven't found a
 solution for it by browsing through the list archive.

 I have written a web application that generates some xml files with
 iso-8859-1 encoding. in an dtd file I defined a entity
 e.g. <!ENTITY trademark "&#x99;">.

My XML file contains <headline>Test &trademark;</headline>

 When I parse the document for reading everything works fine. The
 trademark symbol is properly displayed in the form field of my
 browser form.

 But when I submit my form, the trademark symbol is replaced by an
 question mark: <headline>Test ?</headline>

 If I write 'Test &trademark;' into the form field the following is
 written into the xml file: <headline>Test &amp;trademark;</headline>

How do I get the entity into the xml file with dom4j?

best regards,
martin



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user



--

+------------------------------------------------------------+
| David Lucas                        mailto:[EMAIL PROTECTED]  |
| Lucas Software Engineering, Inc.   (740) 964-6248 Voice    |
| Unix,Java,C++,CORBA,XML,EJB        (614) 668-4020 Mobile   |
| Middleware,Frameworks              (888) 866-4728 Fax/Msg  |
+------------------------------------------------------------+
| GPS Location:  40.0150 deg Lat,  -82.6378 deg Long         |
| IMHC: "Jesus Christ is the way, the truth, and the life."  |
| IMHC: "I know where I am; I know where I'm going."    <><  |
+------------------------------------------------------------+

Notes: PGP Key Block=http://www.lse.com/~ddlucas/pgpblock.txt
IMHO="in my humble opinion" IMHC="in my humble conviction"
All trademarks above are those of their respective owners.




------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to