aspose file tools*
The moose likes XML and Related Technologies and the fly likes Does Java support default values in XML Schemas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Does Java support default values in XML Schemas" Watch "Does Java support default values in XML Schemas" New topic
Author

Does Java support default values in XML Schemas

Sravani Kolla
Greenhorn

Joined: Apr 18, 2009
Posts: 1
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does Java support default values in XML Schemas