annotations and additional rules
Hi dear fellows
I have to write set of classes analizing xml document. Doc should be
validated againt given scheme. I did it. Unfortunately doc should have
additional validation based on unformal rules hiden in
<xs:attribute name="Typ" use="required">
<xs:documentation source="rule">R39, R40</xs:documentation>
<xs:length value="1" />
Meaning of this rules is given in words:
R39 - IF /SAD/Zgloszenie/Rodzaj/@PodTyp = "C" THEN
R40 - IF /SAD/Zgloszenie/Rodzaj/@PodTyp = "D" THEN
Obviously there are much more complicated cases.
Validation of every rule will be implemented as function.
I don't know how to trigger validation (call functions) against this
Should I at the begining find all rules and go through the DOM and
validate them one by one? Maybe there is another, better solution?
What kind of parser would be better, SAX or DOM?
I'm using Xerces.
Please give me some hits.
|All times are GMT. The time now is 08:02 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.