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>
<child2/>
<child1/>
</parent>...
User Profile
Collapse
-
optional random elements in xml schema
-
i don't know how many tags(subtags) the element will contain and neither their name(and i don't care). i just want to allow the element to contain ANYTHING -
I am afraid an element defined as "mixed" will accept subtags and text but those subtags will not accept subtags.....i want an element to accept any depth of subtag nesting:(Leave a comment:
-
xml schema question
Is there a way to specify in a .xsd file that you want to allow an element(a tag) in a .xml file to contain anything(tags, subtags, quotation marks, text, any punctuation marks, anything in no matter what order)?
Thanks -
xml schema group
this is the dtd representation of what i need to convert in xml schema:
<!ELEMENT Atomic (CmdID, NoResp?, Meta?, (Add | Replace | Delete | Copy | Atomic | Map | Move | Sequence | Sync | Get | Exec | Alert)+)>
That is, I want to allow every element inside the paranthesis to be present no matter how many times(without this being necessary), as long as at least one of them is present at least once.
Any help... -
thanks for the tip
my problem could be simplified by asking the following question: how can i specify in a .xsd file that a certain element pertains to a certain namespace(not the namespace specified in "targetNamespac e" namespace)?
In other words how can i specify in a .xsd file that this structure is the only admissible one:
<element1 xmlns="onenames pace">
<childElement xmlns="anothern amespace"/>...Leave a comment:
-
xml schema issue
Does anybody know how can i specify in a .xsd file that a certain xml element HAS to possess an attribute with "xmlns" name and a string value? If i try to specify the common way i get an error that says the "xmlns" is not permitted as an attribute name. I just want to specify in the xsd the fact that i want "element1" to have the "xmlns" attribute:
<element1 xmlns="namespac e">value</element1>...
No activity results to display
Show More
Leave a comment: