You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Cirip Tomas <to...@theIMO.com> on 2001/12/21 17:11:31 UTC

Xerces 2.0.0 - DocumentType.getInternalSubset() does it work?!

Hi all,

I switched from Xerces 1.4.3 to Xerces 2.0.0 Beta 4 and I noticed following
differences:

1.DocumentType.getInternalSubset() doesn't return internal DTD  
  Is it bug or is is some setting on parser that I am missing?! Thank you
2.Document.getVersion() and Document.getEncoding() methods are not on the
document anymore?
  Where can I get Document version and encoding?

Thank you

Tomas 

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


Re: Xerces 2.0.0 - DocumentType.getInternalSubset() does it work?!

Posted by Andy Clark <an...@apache.org>.
Cirip Tomas wrote:
> 1.DocumentType.getInternalSubset() doesn't return internal DTD
>   Is it bug or is is some setting on parser that I am missing?! Thank you

I just committed some changes to add support for the internal
subset string in the Xerces DOM. Please check out the latest
code from CVS to see if this works for you.

-- 
Andy Clark * andyc@apache.org
----------------------------------------------------
Sign Up for NetZero Platinum Today
Only $9.95 per month!
http://my.netzero.net/s/signup?r=platinum&refcd=PT97

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


SV: Xerces 2.0.0 - DocumentType.getInternalSubset() how does it work?!

Posted by "Notion, Endre Furnes" <en...@notion.no>.
I posted the following in december, anyone to help me with a hint?

----- Original Message ----- 
From: Notion, Endre Furnes <en...@notion.no>
To: <xe...@xml.apache.org>
Sent: Monday, December 31, 2001 12:11 PM
Subject: SV: Xerces 2.0.0 - DocumentType.getInternalSubset() does it work?!


> > 2.Document.getVersion() and Document.getEncoding() methods are not on the
> > document anymore?
> > Where can I get Document version and encoding?
> 
> We've removed those methods from the Document interface since those
> methods belong to DOM L3. 
> To get encoding and version you should use Xerces implementation of
> Document: DocumentImpl.
> --
> Elena Litani / IBM Toronto
> 

Dear fellow Xerces2 users.

How do I access an instance of DocumentImpl from DOMParser? Like Cirip Tomas, I shall like to access the version, encoding etc. I can see DOM level 3 shall have methods for it, but for now?

I have subclassed the DOMParser, and get's the Document object via getDocument(), and I have the callback methods I needs for my application. All good so far. I can see DocumentImpl is instanciated as fDocumentImpl, but trying to call it from my subclass causes the parsing to stop. Where am I wrong?

Best regards and a happy new year to you all.

Endre Furnes
Notion



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



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


SV: Xerces 2.0.0 - DocumentType.getInternalSubset() does it work?!

Posted by "Notion, Endre Furnes" <en...@notion.no>.
> > 2.Document.getVersion() and Document.getEncoding() methods are not on the
> > document anymore?
> > Where can I get Document version and encoding?
> 
> We've removed those methods from the Document interface since those
> methods belong to DOM L3. 
> To get encoding and version you should use Xerces implementation of
> Document: DocumentImpl.
> --
> Elena Litani / IBM Toronto
> 

Dear fellow Xerces2 users.

How do I access an instance of DocumentImpl from DOMParser? Like Cirip Tomas, I shall like to access the version, encoding etc. I can see DOM level 3 shall have methods for it, but for now?

I have subclassed the DOMParser, and get's the Document object via getDocument(), and I have the callback methods I needs for my application. All good so far. I can see DocumentImpl is instanciated as fDocumentImpl, but trying to call it from my subclass causes the parsing to stop. Where am I wrong?

Best regards and a happy new year to you all.

Endre Furnes
Notion



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


Re: Xerces 2.0.0 - DocumentType.getInternalSubset() does it work?!

Posted by Elena Litani <el...@ca.ibm.com>.
Cirip Tomas wrote:
> I switched from Xerces 1.4.3 to Xerces 2.0.0 Beta 4 and I noticed following
> differences:
> 
> 1.DocumentType.getInternalSubset() doesn't return internal DTD
>   Is it bug or is is some setting on parser that I am missing?! Thank you

This information is not longer available. However, we will look into
this during next month.

> 2.Document.getVersion() and Document.getEncoding() methods are not on the
> document anymore?
> Where can I get Document version and encoding?

We've removed those methods from the Document interface since those
methods belong to DOM L3. 
To get encoding and version you should use Xerces implementation of
Document: DocumentImpl.


--
Elena Litani / IBM Toronto

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