[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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 www-dom@w... or public-webapi@w... 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:bjoern@h... · 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/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|