• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAXP & Validation

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good morning!
I've a question regarding validating instance documents with JAXP and providing default attributes at validation time.
Currently, I'm succesfully validating an instance document via JAXP with some pretty trivial code -- but I'm not seeing expected behavior; I'm operating under the assumption that at validation time, an instance document that does not provide an optional field as per the associated schema, is provided the default value (if indicated by the schema) -- and, like I said, it's not happening. Do I perhaps need to provide a certain attribute to my DocumentBuilderFactory instance or am I looking for behavior that isn't there?
Thanks!
Cory Wilkerson
 
reply
    Bookmark Topic Watch Topic
  • New Topic