This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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
 
It's not a secret anymore!