akwky Posted September 25, 2017 Share Posted September 25, 2017 Hi all, please pardon me if i post to wrong section (it took me 3 days to even gain access this site). In your xsd tutorial, the Example 2 description is plain wrong, and it is confusing people. The faulty page is here: https://www.w3schools.com/xml/el_all.asp The error must be there for a long time, it even has its own post on stackoverflow https://stackoverflow.com/questions/5677154/how-do-i-make-items-optional-in-xsall Quote: "The example above indicates that the "firstname" and the "lastname" elements can appear in any order and each element CAN appear zero or one time!" To allow each subelement to be missing, the minOccurs attribute must be put to the subelements, not the xs:all itself. Please fix the embarassing error. :-) Link to comment Share on other sites More sharing options...
dsonesuk Posted September 25, 2017 Share Posted September 25, 2017 Unfortunately this site has no connection with the administrators of w3shools.com, posting this error here, won't receive any attention to fix this error, but I suggest you go to 'About' page on W3schools.com then at bottom of page, click report error link. 1 1 Link to comment Share on other sites More sharing options...
akwky Posted September 25, 2017 Author Share Posted September 25, 2017 Oh, I somehow found link to this forum but failed to notice their report error link. Reported. Thank you for your help. Link to comment Share on other sites More sharing options...
Rytsk Posted May 28, 2019 Share Posted May 28, 2019 On 9/25/2017 at 10:23 PM, dsonesuk said: Unfortunately this site has no connection with the administrators of w3shools.com, posting this error here, won't receive any attention to fix this error, but I suggest you go to 'About' page on W3schools.com then at bottom of page, click report error link. There is a link from main menu from w3shools.com to this forum. So the connection does exists. Link to comment Share on other sites More sharing options...
dsonesuk Posted May 28, 2019 Share Posted May 28, 2019 Read again, i'll give a clue " this site" you just posted this on. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now