Handle namespace for elements correctly