ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23395] New: - Adding property element to xmlvalidate
Date Wed, 24 Sep 2003 22:15:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23395>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23395

Adding property element to xmlvalidate

           Summary: Adding property element to xmlvalidate
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: mhawthorne@alumni.pitt.edu


I needed a way to set properties on the XMLReader used for validation, by
calling the method XMLReader.setProperty(String, Object).

My need for this was to specify an external schema to validate an XML file with.
 Setting attributes can't get the job done since it only accepts booleans.

It's a fairly simple patch.  It includes a few new methods and an inner classes
in XmlValidateTask which mimic the logic for setAttribute.  I also added some
test cases, and 2 test xml files, one which passes the schema and one which doesn't.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message