[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

JAXP 1.2, uniform parser configuration for both dtd and w3c schema valid

  • To: <xml-dev@l...>
  • Subject: JAXP 1.2, uniform parser configuration for both dtd and w3c schema validation
  • From: "Vinay Shukla" <vinay.shukla@o...>
  • Date: Tue, 8 Jul 2003 16:53:26 -0400
  • Importance: Normal
  • In-reply-to: <1057694620.10190.ezmlm@l...>

jaxp 1.2
Hi All,

I need some help in figuring out this issue. I think as per JAXP 1.2
specification the defined parser behavior makes it difficult in the
below case.

Case: Validate an XML deployment descriptor with out knowing whether it
needs to be validated against a dtd or a w3 xml schema.

Currently as per JAXP  1.2 I could configure my parser to validate an
xml descriptor against either dtd or a w3 xml schema. However these two
configurations are different. I need to find a uniform way to configure
a parser, where I don't have to worry whether I am going to be
validating against a dtd or a schema.

How do I do this.

As per the JAXP 1.2 specification (Table 1 on page 29 of 148) with
validation turned on, and schema language property set, the document is
only validated against a w3 schema (irrespective of the DOCTYPE).

I would like to find out what is the recommended way to use a JAXP 1.2
compliant parser so that I can validate against both schemas and dtds
with out reconfiguring my parser.

I could directly get hold of xerces parser to achieve the above
behavior. However I have to use JAXP 1.2 APIs.

Thank you for your time,

Vinay Shukla


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.