<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Martin,<br>
<br>
patterndb uses GMarkupParser from glib to process the xml, which
unfortunately has quite limited support of entities, a description
of what is supported can be found here:
<a class="moz-txt-link-freetext" href="http://developer.gnome.org/glib/2.28/glib-Simple-XML-Subset-Parser.html#glib-Simple-XML-Subset-Parser.description">http://developer.gnome.org/glib/2.28/glib-Simple-XML-Subset-Parser.html#glib-Simple-XML-Subset-Parser.description</a><br>
<br>
Basically only the most common 5 entities can be used. If you add
the nonprintable char to your patterndb as is, it should work as a
literal match, but is not easy to maintain of course.<br>
<br>
Balint<br>
<br>
On 11/07/2012 04:51 PM, Martin Holste wrote:<br>
</div>
<blockquote
cite="mid:CANpnLHjR4jHJfY9+-wvymQGg=-qoA18=zL=VnpbKP+bSbPPteA@mail.gmail.com"
type="cite">I'm trying to find a way to use non-printable
characters to delimit messages to avoid problems with escaping
message delimiters. However, I'm having trouble representing any
special characters in the patterndb.xml file. Specifically, I'd
like to use characters like those found here: <a
moz-do-not-send="true"
href="http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML">http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML</a>
such as U+200C. Trying to use the XML entity name, &zwnj;
results in an error: "Entity name \'zwnj\' is not known." Is
there a place that lists what entities are allowed in the XML?<br>
<br>
Thanks,<br>
<br>
Martin<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a>
</pre>
</blockquote>
<br>
</body>
</html>