I have below xml schema in which i specified a default value for one of the choice , but when i pass a xml without below tags i am not getting the default value , Can some one please help me as how the default value works in XML schema
I wouldn't have thought it made any sense to have a default value for an element, since elements don't have values. A default value for an attribute would make sense, but that isn't what you are trying to do there. Actually I am not sure what you are trying to do.
Joined: May 25, 2008
Thanks a lot , but i am just searching and got to know this from w3schools website and not sure how this works
I would suggest getting a proper learning resource for XML Schema. There are a lot of Internet sites which post reference information about various things but most of them don't have much information beyond that. W3schools is one of those. You can't learn Schema from brief descriptions of its features.