<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hello,</div><div>it seems polkit XML parsing is fairly broken: polkitbackendactionpool.c:_cdata(), set as XML_SetCharacterDataHandler(), expect to be called only once with the full value of a string, in contrast to what expat actually promises.  Fixing this would unfortunately require a fairly intrusive change to the XML parser.  Please file a bug to make sure this item is not forgotten.<br></div><div>    Mirek<br></div><div><br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div>Hello,<br><div><br></div>I'm trying to use special characters (the ones that should start with an
 ampersand '&' and finish with semicolon ';') but I can't make it 
work. It only outputs the part after the ampersand. (eg: ' some text 
there')<br><div><br></div>This is part of the <code>.policy</code> file I'm using.<br><div><br></div><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace">    <?xml version="1.0" encoding="UTF-8"?><br></span><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace"><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace">    </span><!DOCTYPE policyconfig PUBLIC<br></span><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace"><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace">     </span>"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"<br></span><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace"><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace">     </span>"<a href="http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd" target="_blank">http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd</a>"><br></span><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace"><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace">    </span><policyconfig><br><div><br></div></span><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace"><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace">    </span>  <vendor></span><code><span class="">Some text here &amp; some text there</span><span class=""></span></code><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace"></vendor><br></span><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace"><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace">    </span>  <vendor_url><a href="http://example.com/" target="_blank">http://example.com/</a></vendor_url><br><div><br></div></span><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace"><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace">    </span>  <action id="..."><br></span><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace"><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace">    </span>    ...<br></span><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace"><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace">    </span>  </action><br><div><br></div></span><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace"><span style="font-family: monospace,monospace;" data-mce-style="font-family: monospace,monospace;" face="monospace,monospace">    </span></policyconfig><br></span><br></div>Is there another way of encoding it?<br></div>
<br>_______________________________________________<br>polkit-devel mailing list<br>polkit-devel@lists.freedesktop.org<br>http://lists.freedesktop.org/mailman/listinfo/polkit-devel<br></blockquote><div><br></div></div></body></html>