• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does Java support default values in XML Schemas

 
Sravani Kolla
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JDK1.6. And the packages javax.xml and org.w3c.dom.

Tried using default="default_val" for both an element, and then an attribute.

Nothing works. After massive search in google, am posting this. Is there a working example of passing a default value from the schema when the XML does not supply one?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic