Hi Colin,
On 11 Jul 2003, Colin Paul Adams wrote:
>
> I use Emacs for editing. I immediately notice the the indentation used
(defconst xerces-style
'("java"
(c-basic-offset . 4)
(tab-width . 4)
(c-hanging-comment-ender-p . nil)
(indent-tabs-mode . nil)))
(add-hook 'c-mode-common-hook
(lambda ()
(c-add-style "xerces" xerces-style)))
(add-hook 'c++-mode-hook
(lambda ()
(c-set-style "xerces")))
in your .emacs file.
>
> More substantially:
>
> With the Last Call draft, there are no longer methods to get and set
> the ErrorHandler and EntityResolver directly. Rather you call
> get/setParameter methods on the DOMConfiguration.
That is correct, although those methods still exist in the impl.
>
> In the case of the error handler, I figure that all I need to do is to
> get the DOMErrorHandler from the DOMConfiguration (which I initially
> set just by calling the default DOMConfigurationImpl constructor) from
> within the error method DOMParserImpl::error, and then everything else
> will work unchanged. As I understand it (am I right?), the
> AbstractDOMParser will call this method when an error occurs.
Sounds right to me.
Gareth
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]