You don't have to declare all of your namespace prefixes on the root element.
A namespace prefix can be declared on any element in the document.
<person xmlns="http://www.java2s.com">
<name/>
<xhtml:p xmlns:xhtml="http://www.w3.org/1999/xhtml">
This is XHTML
</xhtml:p>
</person>