[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
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|