[jira] Created: (GEOT-2602) Parsing of unknown tags in OGC Filter

1 message Options
Embed this post
Permalink
JIRA jira@codehaus.org

[jira] Created: (GEOT-2602) Parsing of unknown tags in OGC Filter

Reply Threaded More More options
Print post
Permalink
Parsing of unknown tags in OGC Filter
-------------------------------------

                 Key: GEOT-2602
                 URL: http://jira.codehaus.org/browse/GEOT-2602
             Project: GeoTools
          Issue Type: New Feature
    Affects Versions: 2.6-M1
         Environment: Win32, Java 1.6u14
            Reporter: Tomasz Płuciennik
            Priority: Minor
         Attachments: incorrect_filter.xml, ParserHandler.java

During parsing of an OGC XML Filter when an unknown tag is found a message is shown:
INFO: Could not find declaration for: {http://www.opengis.net/ogc}PropertyIsEqualTo2. Creating a mock element declaration and parsing anyways...

It will be better if this would generate an exception and stop parsing because the user on a remote machine might never know that he or she is providing incorrect data.

Example incorrect filter is provided in the attachment.

My workaround is to replace the code responsible for parsing the filter anyway in ParserHandler.java in gt-xsd-core with code throwing an exception. This is also provided in the attachment.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-devel