<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#c8e0d8>
<DIV><FONT face=Arial size=2>When running the SAXBuilderDemo if found that it
strips out cdata from elements</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>on the following file:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><?xml version="1.0"?></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><!DOCTYPE Simple [</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> <!ELEMENT Simple ( VerySimple?, ( MySimple
| YourSimple ) )></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV><BR> <!ELEMENT VerySimple (#PCDATA)></DIV>
<DIV> </DIV>
<DIV><BR> <!ELEMENT MySimple (#PCDATA)></DIV>
<DIV> </DIV>
<DIV> <!ATTLIST MySimple type ( MI | MS | IS ) "IS" ></DIV>
<DIV> </DIV>
<DIV> <!ELEMENT YourSimple (#PCDATA)></DIV>
<DIV> </DIV>
<DIV> ]></DIV>
<DIV> </DIV>
<DIV> <Simple><BR> <VerySimple>hello</VerySimple><BR> <MySimple
type="IS" /><BR> </DIV>
<DIV> </DIV>
<DIV></Simple></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>I get the following output:</DIV>
<DIV> </DIV>
<DIV><?xml version="1.0" encoding="UTF-8"?></DIV>
<DIV> </DIV>
<DIV><!DOCTYPE Simple></DIV>
<DIV> </DIV>
<DIV><Simple></DIV>
<DIV> </DIV>
<DIV> <VerySimple></VerySimple></DIV>
<DIV> </DIV>
<DIV> <MySimple type="IS"></MySimple></DIV>
<DIV> </DIV>
<DIV></Simple><BR></DIV>
<DIV>I am new to jdom, but it looks like the builder strips out the cdata
"hello". Why is this?</DIV>
<DIV>and how can i avoid this?</DIV>
<DIV>I am using the default xerces parser.</DIV></FONT></BODY></HTML>