The Xalan input tree is immutable, since XSLT does not allow the source
tree to be modified.

You can use the Xerces DOM and our wrapper around it if you want a mutable
DOM.  There have been many discussions about this on the mailing list, so
you should find lots of things in the mail archives.  Here's somewhere to
start:

   http://marc.theaimsgroup.com/?l=xalan-c-users&m=101552175609344&w=2

Dave



|---------+----------------------------------->
|         |           Bogdan Pilch            |
|         |           <[EMAIL PROTECTED]|
|         |           ff.cuni.cz>             |
|         |                                   |
|         |           04/24/2002 11:42 PM     |
|         |                                   |
|---------+----------------------------------->
  
>---------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                              |
  |        To:      [email protected]                                
                                              |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                        
                                              |
  |        Subject: Adding, removing children                                   
                                              |
  
>---------------------------------------------------------------------------------------------------------------------------|



With Xalan I can't call `removeChild' or 'addChild' methods.

Is it because it does not have corresponding DTD document?
Or is there any way how to change structure of XML document?

I just need to use XPath and change the XML tree (change values, add
nodes, remove nodes, attributes, ...).

             Bogdan

--------------------------------------------------------------------
  "Those who would give up a little freedom for a little safety,
         deserve neither freedom nor safety." --Benjamin Franklin






Reply via email to