You might want to take a look at this :
* Cut, paste, split, and assemble XML documents with VTD-XML
VTD-XML eliminates the performance overhead associated with updating
XML:
http://www.javaworld.com/javaworld/jw-07-2006/jw-0724-vtdxml.html
Frode
                                                                                                                                                                                                                 
                      "Mihalka, Laszlo                                                                                                                                                                           
                      \(Extern\)"                To:       <jdom-interest at jdom.org>                                                                                                                              
                      <Laszlo.Mihalka at sch        cc:                                                                                                                                                             
                      ufa.de>                    Subject:  [jdom-interest] Getting XML-version / Encoding                                                                                                        
                      Sent by:                                                                                                                                                                                   
                      jdom-interest-bounc                                                                                                                                                                        
                      es at jdom.org                                                                                                                                                                                
                                                                                                                                                                                                                 
                                                                                                                                                                                                                 
                      08.08.2006 14:25                                                                                                                                                                           
                                                                                                                                                                                                                 
Dear group,
I'd like to know, how to get the "entry" XML-Version / Encoding (e.g. <?xml version="1.0" encoding="ISO-8859-1"?> from
the Document. I have to split out an XML Document in several smaller portions and of course copy the "first line" in all
portions.
Thanks in advance
Laszlo Mihalka
im Auftrage der SCHUFA Holding AG
Softwareentwicklung
SCHUFA Holding AG
Kormoranweg 5
65201 Wiesbaden
Tel.:   +49 (0) 6 11 - 92 78 - 268
Fax:    +49 (0) 6 11 - 92 78 - 209
E-Mail:    laszlo.mihalka at schufa.de
http://www.schufa.de
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com