When I do that, I get an error in my XML document that says "The 'myAttr' attribute is not declared". Here is what the top of my XSD looks like.
<xsd:schema xmlns:xsi="http:/www.w3.or
xmlns:xs="http://www.w3.or
xmlns:xsd="http://www.w3.o
xmlns="http://www.mycompan
attributeFormDefault="unqu
elementFormDefault="qualif
targetNamespace="http://ww
xmlns:mstns="http://www.my
And I'm trying to add an attribute in my XML that looks like this:
<MyElem myAttr="true"></MyElem >
it always wants me to do the following, and i would prefer to not have to qualify it this way.
<MyElem xmlns:myAttr="true"></MyElem
Main Topics
Browse All Topics





by: kmartin7Posted on 2008-08-19 at 08:18:18ID: 22260568
Try:
<xs:anyAttribute namespace="##local" processContents="lax"/>