carnold-3, Your advice was accurate, I guess that something else was causing the error.
Thank you for your patience and help, xml is as familiar to me as ancient Sanskrit carnold-3 wrote: > > > On Dec 16, 2010, at 4:44 AM, stan.forums wrote: > >> >> Thanks for the prompt reply. This is what i did >> >> <?xml version="1.0" encoding="UTF-8" ?> >> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> >> <!DOCTYPE log4j:configuration [<!ENTITY logpath >> "/home/stan/logfiles/presenceClient.txt">]> >> >> <!-- Presence Appender--> >> <appender name="presenceClientFileAppender" >> class="org.apache.log4j.RollingFileAppender"> >> >> >> >> >> >> <layout class="org.apache.log4j.PatternLayout"> >> >> </layout> >> </appender> >> >> and this i the error i got >> >> log4cxx: Error parsing file [/home/stan/datafiles/mugsim/LogConfig.xml], >> Internal errorXML parser error code: not well-formed (invalid token) (4) >> > > Any XML parser is required to reject that document. The DOCTYPE block has > to appear immediately after the <?xml>. > -- View this message in context: http://old.nabble.com/Local-variable-in-XML-configuration-file-tp30454810p30497348.html Sent from the Log4cxx - Users mailing list archive at Nabble.com.