I have problem and I need help

This should cover W3C XML Schema, Relax NG and DTD related problems.
lukasz1298
Posts: 1

I have problem and I need help

Sat Nov 25, 2017 12:29 pm

Hello,
I have some problem
It is my code:
xml:

Code: Select all

<hobby xmlns="http://tempuri.org/XMLSchema.xsd" >


schema:

Code: Select all

<xs:schema targetNamespace="http://tempuri.org/XMLSchema.xsd"
    elementFormDefault="qualified"
    xmlns="http://tempuri.org/XMLSchema.xsd"
    xmlns:mstns="http://tempuri.org/XMLSchema.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>


If I try to validate the schema, I get this:

Code: Select all

src-resolve.4.2: Error resolving component 'xs:data'. It was detected that 'xs:data' is in namespace 'http://www.w3.org/2001/XMLSchema', but components from this namespace are not referenceable from schema document 'null'. If this is the incorrect namespace, perhaps the prefix of 'xs:data' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'null'.


and this:

Code: Select all

src-resolve: Cannot resolve the name 'xs:data' to a(n) 'type definition' component.

thanks
lukasz

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 1 guest