The namespace URI for the prefix, 'ns_prefix' is not defined.
Explanation
The namespace URI has not been previously defined for this prefix. Each prefix must be mapped to a namespace URI for the first time that it is used.
Programmer response
If this is the first time the prefix is being used, provide the namespace URI to which it must be mapped.