T
timasmith
I have code that connects to MS Access *and* code which connects to an
Oracle database.
Does anyone have a code snippet which reads an XML file to extract
properties I can use to dynamically determine my configuration.
This is less of a db problem - more of extracting properties from an
XML config file problem. Ideally my file is something like this
<db>
<environment name="default">
<driver>MSAccess</driver>
<datasource>C:\temp\my.mdb</datasource>
</environment>
<environment name="production">
<driver>Oracle</driver>
<datasource>tnsnamesname</datasource>
<node>mynode</node>
<port>1521</port>
<instance>prod1</instance>
</environment>
</db>
Is there any existing java framework class that simplifies this task?
thanks
Tim
Oracle database.
Does anyone have a code snippet which reads an XML file to extract
properties I can use to dynamically determine my configuration.
This is less of a db problem - more of extracting properties from an
XML config file problem. Ideally my file is something like this
<db>
<environment name="default">
<driver>MSAccess</driver>
<datasource>C:\temp\my.mdb</datasource>
</environment>
<environment name="production">
<driver>Oracle</driver>
<datasource>tnsnamesname</datasource>
<node>mynode</node>
<port>1521</port>
<instance>prod1</instance>
</environment>
</db>
Is there any existing java framework class that simplifies this task?
thanks
Tim