Try calling:

factory.setAttribute
("http://apache.org/xml/features/dom/defer-node-expansion";, new
Boolean(false));

 (assuming you're using the DocumentBuilder interfaces and factory is a
DocumentBuilderFactory)


Eric





                                                                                
                                              
                      "Tobbi"                                                   
                                              
                      <[EMAIL PROTECTED]         To:      <[EMAIL PROTECTED]>   
                                     
                      com>                     cc:                              
                                              
                                               Subject: Re: Faster startup      
                                              
                      03/18/2002 04:24                                          
                                              
                      AM                                                        
                                              
                      Please respond                                            
                                              
                      to xerces-j-user                                          
                                              
                                                                                
                                              
                                                                                
                                              




   Hi,

my problem is Xerces bootstrap taking cca. 4 seconds on linux. In profiler
info it seems that the most time in out bootstrap takes creating of
DocumentBuilder and there are a lot of calls to DerreferedDocumentImpl and
XMLAttrList. When I spoke about slow parsing I meant to parse small XML in
100ms and when I spoke about fast bootstrap I meant to start in 500ms. Is
it
possible to run Xerces in this way?

   Thank you, Tomas Bouda

----- Original Message -----
From: "Andy Clark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 18, 2002 10:13 AM
Subject: Re: Faster startup


> Tobbi wrote:
> > We're using Xerces 2 to parse XML documents to DOM. We parse only some
> > configs and other not speed-critical docs. Problem is caching of
> > Xerces causing its very slow bootstrap. Is there any posibility to
>
> I find your description very confusing. You say that you parse
> (presumably) small config files and other docs where the speed
> is not that important. But then you say that the parser has a
> slow bootstrap and you need it to go faster. What do you mean?
> Please be more specific.
>
> > disable caching and all that slows down so much? All we need is to
>
> What caching are you talking about?
>
> --
> Andy Clark * [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> 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]






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

Reply via email to