i will explain the exact situation:
i need to find whether an xml string is in the format I expect it to be..which is to contain a number of elements(which i specify in my .xsd validation file), and, also, within the starting tag and closing tag of an particular(<element1> element) element to allow ANYTHING..i want the validation process to flow without any generated error no matter what is contained within that special element(<element1> in my example)-i want to allow this element to contain tags, subtags, punctuation marks, plain text, ANYTHING. if the elements i expect are present and <element1> is also present and correctly closed, i don't care what is it inside the opening tag and closing that of <element1>
so, this should be a valid element(in my acceptance):
<root>
<requiredElement>randomText</requiredElement>
<element1><unclosedOpeningTag></element1>
</root>
For me, this SHOULD be a valid element because i simply don't care what is comprised between <element1> and </element1>. As long as <requiredElement> element and <element1> are present(and correctly closed) i want my element to be validated without the validation procedure to check the insides of <element1>(again, i want to allow the presence of well-formed or non well-formed xml structures between the <element> and </element>)
Is there a solution to this?
Thanks