You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
<?xml version="1.0" encoding="utf-8"?>
<posts>
<rowId="3"PostTypeId="1"AcceptedAnswerId="6"CreationDate="2011-07-12T18:44:18.650"Score="33"ViewCount="6210"Body="<p>Why do we use a permutation table in the first step of <a href="http://en.wikipedia.org/wiki/Data_Encryption_Standard">DES algorithm</a> and one at the end of algorithm?</p>
"OwnerUserId="12"LastEditorUserId="10"LastEditDate="2011-09-27T21:21:58.213"LastActivityDate="2012-06-13T16:41:23.283"Title="What are the benefits of the two permutation tables in DES?"Tags="<block-cipher><des><permutation>"AnswerCount="3"CommentCount="0"FavoriteCount="8" />
<row [...]
I can very nicely match on /posts/row, however as sax will nicely de-escape all attribute values (= the long Body here) before handing the events over to saxpath's Recorder the String-Rewriting will actually produce invalid XML. I monkey-patched it with the following custom recorder -- the 5 predefined XML 1.0 Standard-entities suffice to produce valid XML:
Given the following style of XML (as provided by the stackexchange archives)
I can very nicely match on
/posts/row
, however as sax will nicely de-escape all attribute values (= the long Body here) before handing the events over to saxpath's Recorder the String-Rewriting will actually produce invalid XML. I monkey-patched it with the following custom recorder -- the 5 predefined XML 1.0 Standard-entities suffice to produce valid XML:I think sax is operating correctly and IMHO text-nodes need to be treated this way as well 😄
Any thoughts?
The text was updated successfully, but these errors were encountered: