title: How to programmatically hide XML in java (JAXB)
body: <p>I have a use case where in some cases (dependant on business logic) we want to not display some XML elements.  So I can't use @XmlTransient (i think).</p>
  
  <p>I'd like to do something like this.</p>
  
  <pre><code>private void HideSome() {
   // some code to hide a specific element
  
  }
  </code></pre>