Next in thread → Next in month →

Re: [xml-dev] How DOMError operates?

From
Bjoern Hoehrmann <>
To
Massimiliano Guastafierro <>
Date
2006-10-20T14:10:04Z
ID
<>
Thread
Re: [xml-dev] How DOMError operates?
* Massimiliano Guastafierro wrote:
>I have some questions on DOMError (and DOMLocator)...

If you have trouble understanding the DOM Level 3 Core specification,
you should send comments to the  or 
mailing lists so the Working Group maintaining the document can track
your issues and eventually fix the specification.

>I would want to know when DOMError is used.

Objects implementing the DOMError interface are generated and reported
to the DOM application by the DOM implementation, in accordance with
the relevant DOM specification. It is uses when the specification says
it is used.

>In the DOMError object location is a DOMLocator object but i don't understand
>if DOMLocator Uri is the document Uri and how to define UTF16 and Byte
>offset.

It is the resource identifier the DOMLocator is pointing to. Offsets
are set according to where the error occurs. For example, if you load
a document using DOM Level 3 Load and Save and have the disallow-
doctype parameter set to true, and the document you are loading has
a document type declaration, the offset would typically point to the
beginning of the document type declaration.

>What are the DOMError and DOMLocator constructors?

There are none, they are not needed. In a DOM implementation, you'd
likely have some internal constructor to create such objects, but
this is not of concern to the DOM application.
-- 
Björn Höhrmann · mailto: · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Next in thread → Next in month →