G
GendoIkari
I've been going nuts all day trying to figure this out... I need to
create a schema that allows the document to have an element with any
possible name. When using the <xs:any> tag, it still will only allow
any element that is defined in my namespace. I need to allow elements
which are not defined in any namespace. I've added namespace="##local"
but that still doesn't work, because in the instance document the
element in question is still part of the namespace. The only way at
all I've gotten something to work is by adding processContents="lax",
but this is not good because then I can't ensure that the element is
the correct structure. I need the element to be a simple type, an
xs:string. It should not be allowed to have child nodes. Is there any
way I can force the document to be this specific structure, but NOT
enforce a specific element name to be used?
Thanks,
-Robert
create a schema that allows the document to have an element with any
possible name. When using the <xs:any> tag, it still will only allow
any element that is defined in my namespace. I need to allow elements
which are not defined in any namespace. I've added namespace="##local"
but that still doesn't work, because in the instance document the
element in question is still part of the namespace. The only way at
all I've gotten something to work is by adding processContents="lax",
but this is not good because then I can't ensure that the element is
the correct structure. I need the element to be a simple type, an
xs:string. It should not be allowed to have child nodes. Is there any
way I can force the document to be this specific structure, but NOT
enforce a specific element name to be used?
Thanks,
-Robert