This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
XML Suggestions in Eclipse
get default directory
dom4j / default attributes?
"force" a namespace?
Castor | Default Element Value