Esteban,

no, it is not a correct behaviour for the dom api since the creation of a
dom tree is
good for manipulting the document programmatically. If you add, delete or
change nodes
and afterwards serialize the document, the serialized document should
reflect any changes.

What functions do you call for altering the document? Can you provide some
source?

cheers

Peter 

> -----Urspr�ngliche Nachricht-----
> Von: Esteban Gonzalez [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 12. M�rz 2002 15:49
> An: [EMAIL PROTECTED]
> Betreff: Xerces templating
> 
> 
> HI!
> I�m not really sure if this is the place to post this 
> question... but i�m
> having a little problem here and I need some help ....
> 
> I have a voucher.xml file wich is a �template� to create new 
> xml voucher
> representations.
> 
> I�m using Xerces, latest version, downloaded a week ago.
> When i do
> doc = parser.parse ( uri )
> 
> I get the document with the DOM representation of the xml 
> file ( wich it�s
> fine, since printing it shows an exact copy of my voucher.xml file ).
> So far there are no problems..
> The problem comes when i try to change the data that is on 
> the document...
> adding nodes will result in nothing...
> deleting them ends up on nothing but the �doc� object being always the
> same..
> 
> It this a correct behaviour for the dom api?
> Am i doing something wrong?
> Should i import the root element into a new document and 
> change that one?
> 
> Am i missing something? reading at the API hasn�t been very 
> helpful....
> 
> 
> --------------------------------------------
> Esteban Gonzalez
> Departamento de Sistemas
> 
> ASSIST-CARD International
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to