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 Di...@mail.ing.nl on 2005/10/03 07:53:46 UTC

RE: Notification of Document changes during validation

Thanks,

This is exactly where I was looking for.

-----Oorspronkelijk bericht-----
Van: Michael Glavassevich [mailto:mrglavas@ca.ibm.com] 
Verzonden: donderdag 29 september 2005 19:16
Aan: j-users@xerces.apache.org
Onderwerp: Re: Notification of Document changes during validation


The Xerces DOM implementation supports DOM Level 2 events [1][2], 
specifically Mutation Events [3] which notify an application of 
modifications/additions/removals made to the DOM. I believe that's what 
you're looking for.

[1] http://www.w3.org/TR/DOM-Level-2-Events/
[2] 
http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/events/package-
summary.html
[3] 
http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgrouping
s-mutationevents

<Di...@mail.ing.nl> wrote on 09/28/2005 05:08:57 AM:

> I'm using xerces dom3 (version 2.6.2) to validate a dom document.The 
> document is displayed in a Jtree. The Jtree should always display the 
> latest content of the document. Problem is that the document. 
> normalizeDocument actually changes the content of the document (for 
> instance it inserts required attributes with fixed values). I don't 
> want to reload the whole Jtree. I am using an errorHandler for 
> notification of validation errors and will get an error when the 
> parser detects a default required attributes that is not present, but 
> how do I match this error with the attribute that is inserted? In 
> general : how can I get a notification of Node changes, inserts (or 
> removes) during the validation. DD

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org
-----------------------------------------------------------------
ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.

Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.
-----------------------------------------------------------------


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