I'm having trouble with attributes given an .xsd. This is the schema.

My task, for now, is to create PersonTypeElement. I'm creating the xml in a text editor and validating that with VB.NET 1.0 code. The code was copied from a built in example.

I've made an xml document that validates, it's more than this, but for simplicity, let's say it looks like this:

Code:
<?xml version="1.0"?>

<PersonTypeElement
xmlns="http://www.it.ojp.gov/jxdd/prerelease/3.0.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.it.ojp.gov/jxdd/prerelease/3.0.0.0 jxdds.xsd">

	<PersonPhysicalDetails>
	<PersonHeightMeasure>73</PersonHeightMeasure>
	</PersonPhysicalDetails>

</PersonTypeElement>
It's obvious from the xsd that they're expeciting an attribute to describe the unit measure. However, whenever I add an atribute to the element, my .NET coded validation fails.

For example,
Code:
<?xml version="1.0"?>

<PersonTypeElement
xmlns="http://www.it.ojp.gov/jxdd/prerelease/3.0.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.it.ojp.gov/jxdd/prerelease/3.0.0.0 jxdds.xsd">

	<PersonPhysicalDetails>
	<PersonHeightMeasure PersonHeightUnitCode="in">73</PersonHeightMeasure>
	</PersonPhysicalDetails>

</PersonTypeElement>

As I don't know what I'm doing, I've tried lots of attribute names, but can't get anything to validate.

Any help is much appreciated,
Mike