Ok here goes...
By the nature of my question, you will understand I am new to XML.
I an trying to create an configuration file in xml format instead og the plain old *.ini
I have projects, that should be associated to a specfic version of an application. So my idee was to define applications and then define projects, linking a specific project to a specific application
Below is a first brainstorming:
So , I would link to point project "Sample" to application MYEXE1 and then be able to use variables from that project. If I use a environment analogy, end up with something similar to
I'm poking around on the net, but between XPOINTER, XPATH & XLINK I'm not sure what to use.
Any help would really be appreciated.
AD AUGUSTA PER ANGUSTA
Thierry
By the nature of my question, you will understand I am new to XML.
I an trying to create an configuration file in xml format instead og the plain old *.ini
I have projects, that should be associated to a specfic version of an application. So my idee was to define applications and then define projects, linking a specific project to a specific application
Below is a first brainstorming:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<applications>
<application name="MYEXE1" version="1.0">
<variable name="EXEDIR">C:\programs\myexe1</variable>
</application>
<application name="MYEXE2" version="2.0">
<variable name="EXEDIR">C:\programs\myexe2</variable>
</application>
</applications>
<projects>
<project name="Sample" code="SAM" number="01234">
<application>MYEXE1</application>
<variable name="VAR1">C:\programs\myexe1\lib</variable>
</project>
</projects>
</configuration>
So , I would link to point project "Sample" to application MYEXE1 and then be able to use variables from that project. If I use a environment analogy, end up with something similar to
<variable name="VAR1">%EXEDIR%\lib</variable>
I'm poking around on the net, but between XPOINTER, XPATH & XLINK I'm not sure what to use.
Any help would really be appreciated.
AD AUGUSTA PER ANGUSTA
Thierry