A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
XML and Related Technologies
Does Java support default values in XML Schemas
Joined: Apr 18, 2009
Apr 18, 2009 05:40:01
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?
It is sorta covered in the
JavaRanch Style Guide
subject: Does Java support default values in XML Schemas
"force" a namespace?
get default directory
dom4j / default attributes?
XML Suggestions in Eclipse
Castor | Default Element Value
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015