﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>LogViewPlus Support » LogViewPlus Support » Help &amp; Support  » XML parser configuration does not handle colon (:) in node/element names</title><generator>InstantForum 2017-1 Final</generator><description>LogViewPlus Support</description><link>https://www.logviewplus.com/forum/</link><webMaster>LogViewPlus Support</webMaster><lastBuildDate>Tue, 05 May 2026 07:52:09 GMT</lastBuildDate><ttl>20</ttl><item><title>XML parser configuration does not handle colon (:) in node/element names</title><link>https://www.logviewplus.com/forum/post/1436</link><description>I'm evaluating v2.6.3, and creating a custom XML Parser.&lt;br/&gt;Using the example for configuring the XML Parser [but with the root node updated to &amp;lt;xml:xxx&amp;gt;], adding any conversion specifier does not create an entry in the column/value table.&lt;br/&gt;&lt;br/&gt;To illustrate, here's my Parser Configuration entry with a conversion specifier for 'firstName':&lt;br/&gt;&amp;lt;xml:xxx&amp;gt;&lt;br/&gt;&amp;nbsp; &amp;lt;name firstName="%S{First}" lastName="Doe"/&amp;gt;&lt;br/&gt;&amp;nbsp; &amp;lt;employeeId&amp;gt;12345&amp;lt;/employeeId&amp;gt;&lt;br/&gt;&amp;nbsp; &amp;lt;other attr1="ignore"&amp;gt;ignore&amp;lt;/other&amp;gt;&lt;br/&gt;&amp;nbsp; &amp;lt;dateJoined&amp;gt;2014-05-16 10:50:14,125&amp;lt;/dateJoined&amp;gt;&lt;br/&gt;&amp;lt;/xml:xxx&amp;gt;&lt;br/&gt;&lt;br/&gt;The example works fine without the ':xxx' in the node name.&lt;br/&gt;Background: I am trying to create a custom parser for Log4jXml, extended to include call-site and exception details. Nodes and elements in this format all begin with 'log4j:'.</description><pubDate>Wed, 25 May 2022 16:35:34 GMT</pubDate><dc:creator>radix</dc:creator></item><item><title>RE: XML parser configuration does not handle colon (:) in node/element names</title><link>https://www.logviewplus.com/forum/post/1474</link><description>Glad to hear it Radix - thanks for letting me know!</description><pubDate>Wed, 25 May 2022 16:35:34 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item><item><title>RE: XML parser configuration does not handle colon (:) in node/element names</title><link>https://www.logviewplus.com/forum/post/1473</link><description>Thanks Toby, that seems to work for me now.</description><pubDate>Wed, 25 May 2022 16:34:31 GMT</pubDate><dc:creator>radix</dc:creator></item><item><title>RE: XML parser configuration does not handle colon (:) in node/element names</title><link>https://www.logviewplus.com/forum/post/1467</link><description>Hi Radix,&lt;br/&gt;&lt;br/&gt;I just wanted to let you know that we have now released LogViewPlus v2.6.5 as a &lt;a href="https://www.logviewplus.com/download.html" id="if_insertedNode_1653414327838"&gt;BETA release&lt;/a&gt;.&lt;br/&gt;&lt;br/&gt;This release addresses the XML namespace issue discussed above. &lt;br/&gt;&lt;br/&gt;Thanks again for bringing this issue to our attention.  Please do let me know if you have any further questions or issues.&lt;br/&gt;&lt;br/&gt;Toby</description><pubDate>Tue, 24 May 2022 17:47:50 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item><item><title>RE: XML parser configuration does not handle colon (:) in node/element names</title><link>https://www.logviewplus.com/forum/post/1442</link><description>Thanks for the assistance, and I look forward to trying out the beta when released.&lt;br/&gt;&lt;br/&gt;For now I'll stick with the built-in Log4XmlParser. Since my log source is UDP, I don't think I can use an open action successfully.</description><pubDate>Thu, 12 May 2022 08:16:48 GMT</pubDate><dc:creator>radix</dc:creator></item><item><title>RE: XML parser configuration does not handle colon (:) in node/element names</title><link>https://www.logviewplus.com/forum/post/1439</link><description>Thanks for the update Radix.&lt;br/&gt;&lt;br/&gt;Unfortunately there appears to be a bug in LogViewPlus where namespaces are not being processed correctly.&amp;nbsp; &lt;br/&gt;&lt;br/&gt;I have been able to resolve the issue.&amp;nbsp; This is a serious bug, so we will prioritize the release, but it will still be a few weeks before we are able to get this fix out.&amp;nbsp; I will post back here when a BETA release is available.&lt;br/&gt;&lt;br/&gt;In the meantime, I can suggest two workarounds:&lt;br/&gt;1.&amp;nbsp; Use the built in Log4XmlParser.&lt;br/&gt;2.&amp;nbsp; Remove all references to "log4j:" from the file.&amp;nbsp; With a bit of scripting, this could be done as an &lt;a href="https://www.logviewplus.com/docs/open_action_settings.html" id="if_insertedNode_1652290463904"&gt;open action&lt;/a&gt;.&lt;br/&gt;&lt;br/&gt;I realize that both of those workarounds are poor substitutes.&amp;nbsp; We will be releasing this bug fix as soon as we can.&lt;br/&gt;&lt;br/&gt;Thanks for reporting this issue.&lt;br/&gt;&lt;br/&gt;Toby</description><pubDate>Wed, 11 May 2022 17:48:46 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item><item><title>RE: XML parser configuration does not handle colon (:) in node/element names</title><link>https://www.logviewplus.com/forum/post/1438</link><description>Partial success. By removing the 'log4j:' namespace prefix, I was able to configure the XML parser thus:&lt;br/&gt;[code language="xml"]&amp;lt;event logger="%c" level="%p" timestamp="%d{Elapsed}" thread="%t"&amp;gt;&lt;br/&gt;  &amp;lt;message&amp;gt;%m&amp;lt;/message&amp;gt;&lt;br/&gt;  &amp;lt;throwable&amp;gt;&lt;br/&gt;   &amp;lt;![CDATA[%S{Exception}]]&amp;gt;&lt;br/&gt;  &amp;lt;/throwable&amp;gt;&lt;br/&gt;  &amp;lt;properties&amp;gt;&lt;br/&gt;   &amp;lt;data name="log4japp" value="%S{App}"/&amp;gt;&lt;br/&gt;   &amp;lt;data name="log4jmachinename" value="%S{Host}"/&amp;gt;&lt;br/&gt;  &amp;lt;/properties&amp;gt;&lt;br/&gt;&amp;lt;/event&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;However, this configuration does not show any of my events. Here's one (albeit without the exception field)&lt;br/&gt;[code language="xml"]&amp;lt;log4j:event logger="CommunicationsService.CommsService" level="DEBUG" timestamp="1652286872412" thread="28"&amp;gt;&lt;br/&gt;  &amp;lt;log4j:message&amp;gt;Service 'CommunicationsServer-3733447a' stopped&amp;lt;/log4j:message&amp;gt;&lt;br/&gt;  &amp;lt;log4j:properties&amp;gt;&lt;br/&gt;    &amp;lt;log4j:data name="log4japp" value="Communications Service.exe(20776)" /&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;log4j:data name="log4jmachinename" value="RDX-L0122" /&amp;gt;&lt;br/&gt;  &amp;lt;/log4j:properties&amp;gt;&lt;br/&gt;&amp;lt;/log4j:event&amp;gt;&lt;br/&gt;[/code]&lt;br/&gt;&lt;br/&gt;Switching to the built-in Log4XmlParser does work, but doesn't show the extra fields I'm after.</description><pubDate>Wed, 11 May 2022 16:52:39 GMT</pubDate><dc:creator>radix</dc:creator></item><item><title>RE: XML parser configuration does not handle colon (:) in node/element names</title><link>https://www.logviewplus.com/forum/post/1437</link><description>Hi Radix,&lt;br/&gt;&lt;br/&gt;You seem to be having a problem parsing the XML namespace.&amp;nbsp; Try declaring the parser template without the namespace declarations - "xml:".&amp;nbsp; &amp;nbsp;Also, nodes in the parser template which do not contain relevant information should be removed. &lt;br/&gt;&lt;br/&gt;So for the example you provided, you could simplify it to just:&lt;br/&gt;[code]&amp;lt;xxx&amp;gt;&lt;br/&gt;  &amp;lt;name firstName="%S{First}"/&amp;gt;&lt;br/&gt;&amp;lt;/xxx&amp;gt;[/code]&lt;br/&gt;Hopefully that makes sense.&amp;nbsp; If you are able to provide a sample log entry, I would be happy to provide an appropriate configuration.&lt;br/&gt;&lt;br/&gt;Hope that helps,&lt;br/&gt;&lt;br/&gt;Toby&lt;br/&gt;</description><pubDate>Wed, 11 May 2022 16:01:05 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item></channel></rss>