Hey guys
I have 3 unrelated questions about schemas, answering any of them would be appreciated:
1. Is there a way to tell the schema that the XML file must have the elements that the schema defines, but if there are other random elements in between, then just ignore them? Because I keep getting validation errors if I insert an element. Even when I don't use the 'sequence' element, but 'all' instead. Is there a way to allow that?
2. One of the elements contains data that is a list of words separated by commas with no spaces. The words are only certan specific words, so I wanted to use a list of enumerated strings. But it won't work because of the commas. Is there a way to tell the schema to use commas as a delimeter?
3. I have elements of name 'name' and each one of them has unique data. I have another element that has to match one of these names. I know that if I would give the name elements an 'id' attribute , I could use an 'idref' on the other element. But is there a way to achieve something similar, but instead of the attribute of the element, to do it with the text of the element?
Any information you give me will help.. thanks
I have 3 unrelated questions about schemas, answering any of them would be appreciated:
1. Is there a way to tell the schema that the XML file must have the elements that the schema defines, but if there are other random elements in between, then just ignore them? Because I keep getting validation errors if I insert an element. Even when I don't use the 'sequence' element, but 'all' instead. Is there a way to allow that?
2. One of the elements contains data that is a list of words separated by commas with no spaces. The words are only certan specific words, so I wanted to use a list of enumerated strings. But it won't work because of the commas. Is there a way to tell the schema to use commas as a delimeter?
3. I have elements of name 'name' and each one of them has unique data. I have another element that has to match one of these names. I know that if I would give the name elements an 'id' attribute , I could use an 'idref' on the other element. But is there a way to achieve something similar, but instead of the attribute of the element, to do it with the text of the element?
Any information you give me will help.. thanks