xml and Env Vars

Joshua Sparks

Usenet Archive
Joined
Nov 19, 2003
Messages
3
Reaction score
0
I have an XML source that I want to modify to use Unix Environment variables to represent directories instead of hard coding them. I'd like to know if this is possible...knowing that XML is platform independant.

Thanks
 

Finnbarr P. Murphy

Usenet Archive
Joined
Nov 28, 2003
Messages
10
Reaction score
0
The answer is - it depends.

One way would be to pass the environment variables in to your processor via command line parameters/arguments. Another way would be to roll your own document processor using something like libxml or libxslt (www.libxml.org) that would have have specific knowledge of which elements/attributes are actually enviromental variables and use getenv to retrieve the value.

- Finnbarr
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,223
Members
248,131
Latest member
Tonypshaw1

Latest Threads

Top