xsd - can i write a schema that all XML are valid to it? -


I have to write a schema that all the XML examples are valid for that I tried:

  & Lt; Xs: element name = "arguments" & gt; & Lt; XS: complexType & gt; & Lt; XS: Sequence & gt; & Lt; Xs: any name space = "## any" minOccurs = "0" maxOccurs = "unbounded" process = "loose" /> & Lt; / XS: sequence & gt; & Lt; / XS: complexType & gt;  

But it argues for a basic element whose name is logic. Is there any way to root anyway?

Good question, although I'm not sure if this has to be done. Your approach is good with using xs: any , but I'm not sure that it can be applied to an entire XML (for root), but for a part of it

To read from a book, I read it once (something like "Why?" People are asking, but they put a purpose on it): [...] is useful when XSLT While writing schemas for languages, regular markups are included with many vocabulary, schema is written when unknown [...] useful when you are just beginning to design the document structure and you have everything yet Fits in with a clear Swire is not [...] ()

I am also curious whether it can be done or what is the best way to do it.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -