title: How to do encryption/decryption in xml with StAX?
body: <p>One of the reason I use StAX is because of it low memory consumption in processing large xml files.</p>
  
  <p>I've been requested to encrypt the whole xml files, and decrypt them later.</p>
  
  <p>The easier solution I can come up with, without having major change to existing code, is encrypt content only.</p>
  
  <pre><code>        xsw.writeStartElement("row");
          xsw.writeCharacters(Encrypter.encrypt("z"));
          xsw.writeEndElement();  
  </code></pre>
  
  <p>However people still can understand the structure of the data. 
  What if I want to encrypt everything in xml? Any Solution? 
  Bear in mind that I am dealing with large xml file :)</p>
  
  <p>Thanks.</p>