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
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Does Java support default values in XML Schemas
 
Similar Threads
dom4j / default attributes?
"force" a namespace?
Castor | Default Element Value
get default directory
XML Suggestions in Eclipse