Skip to content

XML Schemas are forced to have a tempuri.org namespace #20

@savornicesei

Description

@savornicesei

Issue by spankr
Friday Nov 25, 2016 at 17:41 GMT
Originally opened as NDbUnit#63


When I construct an .xsd file, it does not like my namespace and insists on it containing "tempuri.org".

System.ArgumentException : The namespace in the file '' is invalid. Expected 'http://tempuri.org/MyDataSet.xsd' but was 'http://example.org/MyDataSet.xsd'

Digging reveals that NDbUnit.Core.NDbUnitTest.SCHEMA_NAMESPACE_PREFIX is set to "http://tempuri.org/".

Normally, I would like to use the company url for the namespace, "http://fakecompany.com/Products" but I cannot do that nor use any potentially pre-existing schemas unless they have the Microsoft example prefix hard-coded into the namespace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions