Hi Prapti,

If your application is in a jar, add a directory called META-INF/services/
to the jar. Files in this directory define service providers [1]. The
parser will read a file called
org.apache.xerces.xni.parser.XMLParserConfiguration [2] from this
directory
when it creates an XMLParserConfiguration if the system property
org.apache.xerces.xni.parser.XMLParserConfiguration has no value. This
file contains the name of the parser configuration. If you place this file
containing the name the XInclude configuration in META-INF/services/ in
your jar, and place your jar in front of Xerces in your classpath at
runtime, the parser should create the configuration of your choice.

[1] http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Service%20Provider
[2] http://xml.apache.org/xerces2-j/faq-xni.html#override-default-config

On Tue, 28 Oct 2003, Prapti Sen wrote:

> Hello,
> How can I enable XInclude processing through my program and not at run
> time?
>
> The current method to enable XInclude is at run time:
> java -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=MyConfig
> application_class
>
> Can I set the parser configuration while compiling? If it is possible,
> please let me know how to do it?
>
> Thank you.
> Prapti
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

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

Reply via email to