[jdom-interest] XERCES 1.3 and JDOM

Jason Hunter jhunter at collab.net
Tue Mar 6 19:01:56 PST 2001


As discussed here last week, Xerces 1.3 does some new things with
doctypes that make it not work with JDOM at the moment.  Try the Xerces
1.2 that comes with JDOM.  It'll work.

So we regression test your bug, it'd help if you sent in all the code. 
You don't show the builder step or how you get "element".

-jh-

Gordon Augat wrote:
> 
> Give the following document
> 
> <!DOCTYPE html >
> <html>
>   <head>
>     <title>Augat Admin</title>
>         <script language="JavaScript1.2">
>         <!--
>         comment
>         -->
>         </script>
>   </head>
>   <body>
>   </body>
> </html>
> 
> The following code snippet
> 
> // element represents the <script> element
> List list = element.getMixedContent();
> for (int i = 0; i < list.size(); i++) {
>         System.out.println(i + ": " + list.get(i).toString());
> }
> 
> produces the following output:
> 
> 0:
> 
> if I remove <!DOCTYPE html > from the document, I get the following result:
> 
> 0:
> 1: [Comment: <!--
>         comment
>         -->]
> 2:
> 
> With a version of Xerces prior to 1.3, I get the second output whether I
> have <!DOCTYPE html > in the document or not.
> 
> Any ideas?
> 
> Gordon
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list