Couple mistakes. You have to specify the namespace "log4j" because you are using the namespace prefix.
And another mistake. Your XML is missing the top object so the Web browser won't show it anyway . In order to be viewed in the web browser, it should look something like this: <?xml version="1.0"?> <TopObject xmlns:log4j="http://URL"> <log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory" timestamp="1020341749111" priority="INFO" thread="main"> <log4j:message><![CDATA[1st hello world: 1]]></log4j:message> </log4j:event> <log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory" timestamp="1020341749111" priority="INFO" thread="main"> <log4j:message><![CDATA[1st hello world: 2]]></log4j:message> </log4j:event> </TopObject> where "TopObject" could be any name ("Log", "List", "Document", or anything else) , and URL should point to the "log4j" datadictionary (description of all tags). Or you can include the datadictionary in the beginning of the file and call it "log4j". Or you can get rid of "log4j" prefixes, then you won't need "xmlns" at all: <?xml version="1.0"?> <Document> <event category="com.loomissayles.framework.lslogging.LSLoggerFactory" timestamp="1020341749111" priority="INFO" thread="main"> <message><![CDATA[1st hello world: 1]]></message> </event> <event category="com.loomissayles.framework.lslogging.LSLoggerFactory" timestamp="1020341749111" priority="INFO" thread="main"> <message><![CDATA[1st hello world: 2]]></message> </event> </Document> You may also consider designing the XSL stylesheet to view your log in a nice custom format. Then you got to include a reference to the stylesheet in the beggining: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="LogStyleSheet.xsl"?> <Document> .... </Document> Michael Agroskin (Currently unemployed, so no credentials here) ----- Original Message ----- From: "Rob Mitchell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 03, 2002 8:57 AM Subject: Using browser to view XMLLayout log file? Hi, Here's my log file contents: <log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory" timestamp="1020341749111" priority="INFO" thread="main"> <log4j:message><![CDATA[1st hello world: 1]]></log4j:message> </log4j:event> <log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory" timestamp="1020341749111" priority="INFO" thread="main"> <log4j:message><![CDATA[1st hello world: 2]]></log4j:message> </log4j:event> <log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory" timestamp="1020341749151" priority="INFO" thread="main"> <log4j:message><![CDATA[1st hello world: 3]]></log4j:message> </log4j:event> <log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory" timestamp="1020341749172" priority="WARN" thread="main"> <log4j:message><![CDATA[2nd hello world: 4]]></log4j:message> </log4j:event> <log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory" timestamp="1020341749202" priority="WARN" thread="main"> <log4j:message><![CDATA[2nd hello world: 5]]></log4j:message> </log4j:event> <log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory" timestamp="1020341749202" priority="WARN" thread="main"> <log4j:message><![CDATA[2nd hello world: 6]]></log4j:message> </log4j:event> <log4j:event category="testOne" timestamp="1020341749262" priority="FATAL" thread="main"> <log4j:message><![CDATA[3rd hello world: testOne]]></log4j:message> </log4j:event> <log4j:event category="testOne" timestamp="1020341749262" priority="FATAL" thread="main"> <log4j:message><![CDATA[3rd hello world: testOne]]></log4j:message> </log4j:event> <log4j:event category="testOne" timestamp="1020341749312" priority="FATAL" thread="main"> <log4j:message><![CDATA[3rd hello world: testOne]]></log4j:message> </log4j:event> so I copy/paste the example from XMLLayout javadocs into this file: <?xml version="1.0" ?> <!DOCTYPE log4j:eventSet SYSTEM "log4j.dtd" [<!ENTITY data SYSTEM "test.log">]> <log4j:eventSet xmlns:log4j="http://jakarta.apache.org/log4j"> &data; </log4j:eventSet> and copied the "log4j.dtd" into same directory. So my directory now has all 3 files in same place. When I fire-up IE5.5 browser, I get this error The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. ---------------------------------------------------------------------------- -- Reference to undeclared namespace prefix: 'log4j'. Line 1, Position 134 <log4j:event category="com.loomissayles.framework.lslogging.LSLoggerFactory" timestamp="1020341749111" priority="INFO" thread="main"> Can anyone tell me what I'm doing wrong? Thanks! _________________________ Rob Mitchell Base Class Technologies, Inc. Java, WebSphere, Domino, Oracle development [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>