The code you have shown should return the value "$(CONFIG.DIR)", a string, if the nodeList contains the Logfile element as its first child. XML has no way to evaluate environment variables. You can parse the string to get "CONFIG.DIR" and then use standard Java methods (I assume this is Java, I've never seen org.w3c.dom.Element before) to resolve this variable.
--
Joe (
Microsoft MVP - XML)