Is there a way to specify in a xsd schema that i want to allow some optional subtags in any random order(each occuring at most once), and at least one of them(no matter which) to be present?
Example(this should be validated by the xsd schema)
<parent>
<child1/>
<child2/>
</parent>
<parent>...
the <element1> doesn't encircles its content in a [CDATA] clause in my xml file:(
if this is the only solution you know of, thank you very much, it's helpful to find out it's pointless to search more for a solution
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...
thanks tsuji
anyway,
in this case, being well-formed and valid is the same thing(this is the case, no matter how unusual this may be) and i want to allow non well-formed xml(i want to allow ANYTHING to be included there, in that element, it doesn't matter what) ONLY between the <element1> and...
is there a way to specify that a xml element is allowed to contain ANYTHING?(no matter how many subtags, nested subtags, quotation marks, text, ANYTHING?). Something like:
<element1>
<subelem'ent>randomtext<sube'lement1/><subelement>
randomtext
</element>
How am i this specifying in a .xsd file ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.