I m not exactly sure if this will solve your issue. CompanySlaves
is not references in any where in xsd. Type is defined but not used.
I think you need to have <xsd:element name="SomeElementName" type="tns:CompanySlaves"></xsd:element> in your xsd definition
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://xml.netbeans.org/schema/newXmlSchema"
xmlns:tns="http://xml.netbeans.org/schema/newXmlSchema"
elementFormDefault="qualified">
<xsd:element name="SubrogationClaim" type="tns:SubrogationClame"></xsd:element>
<xsd:complexType name="SubrogationClame">
<xsd:sequence>
<xsd:element name="CompanyName" type="xsd:string"></xsd:element>
<xsd:element name="CompanyPlace" type="xsd:string"></xsd:element>
<xsd:element name="CompanyEmploee" type="tns:SubrogationClame"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CompanySlaves">
<xsd:sequence>
<xsd:element name="EmploeeName" type="xsd:string"></xsd:element>
<xsd:element name="EmploeeSalary" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:ComplexType>
</xsd:schema>