petrov.aleksandr
petrov.aleksandr

Reputation: 642

When I try to attach xsd to xml, root of xml become red(in Intellij IDEA), what problem it can be?

I attach xsd to xml:

<product name="example" version="example" xmlns:msi="http://www.w3.org/2001/XMLSchema" xsi:noNamecpaceLocation="product.xsd">

But product don't see the schema, how can I fix it?

Upvotes: 1

Views: 79

Answers (1)

Prince Vegeta
Prince Vegeta

Reputation: 719

Shouldn't

xsi:noNamecpaceLocation

be

xsi:noNamespaceSchemaLocation

and

xmlns:msi="http://www.w3.org/2001/XMLSchema"

be

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

Upvotes: 1

Related Questions