title: Need to convert scala Node into Elem
body: <p>I have an xml RewriteRule and I'm trying to modify the passed Node <code>n</code>.  I want to do some things like copy &amp; rename <code>n</code>, but those functions are only available on an Elem.  </p>
  
  <p>How do I convert Node <code>n</code> to an Enum?</p>