dcsimg
XML Schema: xs:any in xs:all
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ilya_Kazakevich
Posted On:   Saturday, April 12, 2008 03:16 PM

Hello. I want to make schema in wich one element may contain any elements and some predeclared. Predeclared should be valid. I.e: [user] [login]Ivan[/login] [anything/] [password]Kremlin[/password] [anything]some text[/anything] [/user] I do not realy care about [anything], but I want login and password match and some restrictions: like "login should not be longer than 8 chars". Order may be different too. So, if element is unknown - skip it. If it is known - check it against some rules. [anything] is [xs], but I cannot use it in [xs], and I need [xs] because I do not care about order. I am newbie in    More>>

Hello.

I want to make schema in wich one element may contain any elements and some predeclared. Predeclared should be valid.

I.e:

			

[user]
[login]Ivan[/login]
[anything/]
[password]Kremlin[/password]
[anything]some text[/anything]
[/user]



I do not realy care about [anything], but I want login and password match and some restrictions: like "login should not be longer than 8 chars".
Order may be different too.

So, if element is unknown - skip it. If it is known - check it against some rules.

[anything] is [xs], but I cannot use it in [xs], and I need [xs] because I do not care about order.

I am newbie in XML.

thanks.    <<Less
About | Sitemap | Contact