Hi!
I have the following xsd files:
SchemaA
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://schemaA"
elementFormDefault="qualified"
xmlns="http://schemaA"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Configuration">
<xs:complexType>
<xs:all>
<xs:element name="StationNumber" type="xs:int">
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>
SchemaB
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://schemaB"
elementFormDefault="qualified"
xmlns="http://schemaB"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:attribute name="Name" type="xs:string" />
</xs:schema>
I'm trying to reference them and use them from the following XML:
<?xml version="1.0"?>
<Configuration xmlns="http://schemaA"
xmlns:ba="http://schemaB">
<StationNumber ba:Name="aaa">1</StationNumber>
</Configuration>
Visual Studio 2008 underlines ba:Name as error with the description: The 'http://schemaB%3AName' attribute is not declared.
Any ideas?