Please try this out -
Schema File -
================================================
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://mySpace.com" xmlns="http://mySpace.com">
<xsd:element name="Parent">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Child"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
===============================================
Changed the stuff above from xs: to xsd: for some of the elements.
XML File ---
================================================
<?xml version="1.0"?>
<
test 
arent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://mySpace.com mySchema.xsd"
xmlns:test="http://mySpace.com">
<Child/>
</test

arent>
=================================================
We need to explicity place the Parent element in the namespace as the elementFormDefault="unqualified" by default. This means that the inner elements should not be namespace qualified in the instance documents.
Little relevant portion of the
java code -
================================================
DOMParser parser = new DOMParser();
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.setFeature("http://apache.org/xml/features/validation/schema", true);
parser.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation",
"http://mySpace.com mySchema.xsd");
parser.parse("dd.xml");
doc = parser.getDocument();
=================================================
I'm using Roger's xsv validator.