Here's a test case:

http://top.cs.vt.edu/~gback/bx/b622/TestNS.java

We insert a node, BaseX ignores its namespace and produces wrong XML.

 - Godmar