You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Karl Baum <ka...@Tallan.com> on 2002/06/29 16:09:07 UTC

large files and performance

We are currently caching all of our product data in xml files generated by
castor using the Xerces2 sax parser.  We unmarshall these products when we
start up our application server.  Because the xml files are so large, it
takes some time for the Xerces parser to parse through all of the data,
between 10 and 15 minutes.

I was wondering if anyone knows of any shortcuts to cutting down the time it
takes to parse through all of the data.

I notice when I do thread dumps that many of the threads are in DTD related
methods such as:

    org.apache.xerces.parsers.DTDConfiguration.parse

Maybe there is a way to turn off DTD validation?

I am sorry if these questions have been answered already as I am new to this
list.  Thanks for your help.

Karl


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: new bee for xerces

Posted by SAXESS - Hussayn Dabbous <da...@saxess.com>.
Savita wrote:

>Hi All ,
>
>I have a xsl file and I am transforming it using xerces and Xalan.
>
>In my xsl File I have someting like
><SQL>
>some query where rownum &lt;=
></SQL>
>
>I am getting a xml file as output.I expect that in xml file I should get
>something like <=
>but I am getting the same thing in xml file like &lt;=
>
>Please help me solving this.
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
>  
>

What you get in your result file depends on the output method you choose 
in your translation.
Your expectation of getting the ">" symbol in the output text would 
break the XML rules.

solutions:
Either create a CDATA environment around your SQL statement (preferabel 
method),
or change the output method to "text" (leads to non XML files)

That might help.
regards, hussayn

-- 
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax:     +49-221-56011-20
E-Mail:  dabbous@saxess.com



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Xerces version in JDK 1.4.1

Posted by Julio Castillo <jc...@edgenuity.com>.
As I understand starting with SDK 1.4 an older version of Xerces was bundled
with the JDK.

Sun's SDK 1.4.1 was recently released. Does anybody know what version of
Xerces was included?

I fully understand the role of the endorsed directory to replace the
embedded version. Regarding this, I'm currently placing both the
xercesImpl.jar and the xmlParserAPIs.jar files there. I question whether I
need the xmlParserAPis.jar there.

** julio



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


new bee for xerces

Posted by Savita <sa...@india.hp.com>.
Hi All ,

I have a xsl file and I am transforming it using xerces and Xalan.

In my xsl File I have someting like
<SQL>
some query where rownum &lt;=
</SQL>

I am getting a xml file as output.I expect that in xml file I should get
something like <=
but I am getting the same thing in xml file like &lt;=

Please help me solving this.




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


RE: large files and performance

Posted by Aleksandar Milanovic <am...@galdosinc.com>.
Unrelated to Xerces, you may consider using a native XML database that
allows you to access the data (in DOM) without having to parse it all. Only
the DOM nodes that you are accessing will be retrieved from the secondary
memory.

Alex

-----Original Message-----
From: Karl Baum [mailto:karl.baum@Tallan.com]
Sent: June 29, 2002 6:09 AM
To: xerces-j-user@xml.apache.org
Subject: large files and performance


We are currently caching all of our product data in xml files generated by
castor using the Xerces2 sax parser.  We unmarshall these products when we
start up our application server.  Because the xml files are so large, it
takes some time for the Xerces parser to parse through all of the data,
between 10 and 15 minutes.

I was wondering if anyone knows of any shortcuts to cutting down the time it
takes to parse through all of the data.

I notice when I do thread dumps that many of the threads are in DTD related
methods such as:

    org.apache.xerces.parsers.DTDConfiguration.parse

Maybe there is a way to turn off DTD validation?

I am sorry if these questions have been answered already as I am new to this
list.  Thanks for your help.

Karl


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org