[jboss-as7-dev] Validation of XML Parsers / Schemas

Darran Lofthouse darran.lofthouse at jboss.com
Tue Sep 27 14:07:04 EDT 2011


I am not talking about validation of XML documents here, I am talking 
about validation of the parser implementations with AS7.

Regards,
Darran Lofthouse.


On 09/27/2011 07:03 PM, Anil Saldhana wrote:
> IMO schema validation is needed when:
> a) users want to enable it to debug an issue.
> b) testsuite needs to validate schemas.
>
> In both these instances, the Jaxp Validation API is sufficient if the
> schema files are known. Would it be useful to just enable jaxp
> validation (on demand) before the subsystem parsing kicks in?
>
> On 09/27/2011 11:42 AM, Darran Lofthouse wrote:
>> The topic of how to validate the XML parsers or the schemas crops up
>> every now and again.
>>
>> I have been having a couple of ideas of how we could at some point look
>> into this: -
>>
>> http://community.jboss.org/docs/DOC-17243
>>
>> The proposed idea actually covers two parts: -
>>      - A wrapper around the existing API that allows the parsers to just
>> request the elements / attributes they require and leave the wrapper to
>> handle all the error handling we currently have distributed across the
>> parsers.
>>
>>     - This then allows us during testing to validate that the calls match
>> the structure defined in the schema.
>>
>> I may try prototyping something other the weekend but thought I would
>> put this out there and see if anyone has any thoughts / comments.
>>
>> Regards,
>> Darran Lofthouse.
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


More information about the jboss-as7-dev mailing list