Ha! I missed that bit. That's entirely the problem. The namespace is declared on a self closing element, so is scoped to only that element. When the xmlreader encounters the namespace further down it throws a "namespace undeclared" exception. What you've got otherwise is invalid XML, which no xmlparser can read.
Change your xml to below or move the namespace declaration to the myComponent element.
Leave a comment: