Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > xml and Env Vars

Reply
Thread Tools

xml and Env Vars

 
 
Joshua Sparks
Guest
Posts: n/a
 
      11-25-2003
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
 
Reply With Quote
 
 
 
 
Finnbarr P. Murphy
Guest
Posts: n/a
 
      11-28-2003
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


(Joshua Sparks) wrote in message news:<. com>...
> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RubyGems and ENV vars ??? Une Bévue Ruby 3 02-01-2008 04:59 PM
ENV['LD_LIBRARY_PATH'] not changing env TDR Ruby 3 08-31-2007 06:01 PM
SAXException: Attribute "xmlns:env" was already specified for element "env:Envelope' Ankit Mehta Java 1 09-29-2006 09:24 PM
app vars and cache vars Jon ASP .Net 3 12-14-2004 08:52 PM
Reading ENV vars in Solaris - Indirectly - help! Wells Java 5 05-17-2004 11:23 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57