[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    Re: Notification of Document changes during validation
From:       Michael Glavassevich <mrglavas () ca ! ibm ! com>
Date:       2005-09-29 17:16:20
Message-ID: OFE709AA02.95AFE917-ON8525708B.005DDA6E-8525708B.005EDF9B () ca ! ibm ! com
[Download RAW message or body]

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-eventgroupings-mutationevents

<Dick.Deneer@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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic