title: Changing XML Namespace with Scala
body: <p>I am using scala to load a XML file from file via the <code>scala.xml.XML.loadFile()</code> method. The documents I'm working with have namespaces already defined and I wish to change the namespace to something else using scala. For example, a document has a xmlns of "<a href="http://foo.com/a" rel="nofollow noreferrer">http://foo.com/a</a>" with a prefix of "a" - I would like to change the namespace and prefix for the document to "<a href="http://foo.com/b" rel="nofollow noreferrer">http://foo.com/b</a>" and "b" respectively.</p>
  
  <p>Seems easy and I feel like I'm missing something obvious here. I do not have a problem getting the namespace from the return <code>Elem</code> from the referenced <code>loadFile()</code> method.</p>