• 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

Interview question on SAX and DOM and XSchema.

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Recently I attended an interview in which he asked me a question -
In SAX there is a support for DTDs but if you do NOT have DTD and you have been given an XSchema instead ...... then how do you process an XML application ?
I do not know the answer and I could not wild-guess. But I thought I could share it with you guys.
Do you know the answer ?
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sun's Java Web Services Developer Pack is said to support XML schemas by introducing an early version of JAXP 1.2 which includes schema support.
From the Java Web Services Tutorial:


Another popular schema language is XML Schema, which is being developed by
the World Wide Web (W3C) consortium. XML Schema is a significantly more
powerful language than DTD, and with its passage into a W3C Recommendation
in May of 2001, its use and implementations have increased. The community of
developers using the Java platform has recognized this, and the expert group for
the Java� API for XML Processing (�JAXP�) has been working on adding sup-port
for XML Schema to the JAXP 1.2 specification. [b]This release of the Java�
Web Services Developer Pack includes support for XML Schema.[/url]


In the same document, there are some explanations on how you would go about validating XML documents with XML schemas in section Validating with XML Schema
[ July 31, 2002: Message edited by: Valentin Crettaz ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic