You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Jose Correia <jo...@exinet.co.za> on 2000/08/02 08:24:53 UTC

weird DOCType thing with xerces-j 1.1.2

Hi all

I've got this XML document below:

<?xml version="1.0"?>
<html  xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>

</head>

<body>

Hello

</body>
</html>

That when I parse with xerces and I get the document type for the
resulting document, then it does not return me null as expected (since
there isn't any) but rather this if I println it: [html: null]

Is this a bug? I mean according to the API method:
"public DocumentType getDoctype()
     The Document Type Declaration (see DocumentType ) associated with
this document. For HTML
     documents as well as XML documents without a document type
declaration this returns null ."

Thanks and regards
Jose Correia

                \=/,         _-===-_-===-_-===-_-===-_-==-_
                |  @___oo  (                               )_
      /\  /\   / (___,,,}_--=                                )
     ) /^\) ^\/ _)        =_"Positive thinking - a great way  )
     )   /^\/   _)         (_        to face life"             )
     )   _ /  / _)          (        Jose Correia            )
 /\  )/\/ ||  | )_)          (_    jose@exinet.co.za        )
<  >      |(,,) )__)           (   jcorreia@global.co.za    )
 ||      /    \)___)\           (_                        _)
 | \____(      )___) )___          -==-_______-=====-___==
  \______(_______;;; __;;;



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org