Replace use of XMLEncoder.encode( Filter )
Description
Environment
Activity

codehaus April 10, 2015 at 3:54 PM
CodeHaus Comment From: cholmes - Time: Thu, 28 Oct 2004 12:16:18 -0500
---------------------
<p>This works fine as is. </p>

codehaus April 10, 2015 at 3:54 PM
CodeHaus Comment From: jgarnett - Time: Fri, 6 Feb 2004 14:38:53 -0600
---------------------
<p>I am taking this off the 1.2.0 fast track</p>

codehaus April 10, 2015 at 3:54 PM
CodeHaus Comment From: jgarnett - Time: Fri, 6 Feb 2004 14:35:50 -0600
---------------------
<p>Okay I have confirmed that we are just using XMLEncoder.encoder( Filter ) to generate a String for output.</p>
<p>So what we have here is a lack of documentation/knowledge on how to use FilterTransformer. I am downgrading this to minor, have attached a link to a Geotools2 bug report, and will let this one slide.</p>

codehaus April 10, 2015 at 3:54 PM
CodeHaus Comment From: jgarnett - Time: Fri, 6 Feb 2004 13:53:56 -0600
---------------------
<p>XMLEncoder for filter is the class that we need to undeprecate or convert everything of to SAX.</p>

codehaus April 10, 2015 at 3:54 PM
CodeHaus Comment From: brihaye - Time: Fri, 6 Feb 2004 03:28:54 -0600
---------------------
<p>Other solution : use Avalon's utilities.</p>
<p><a href="http://avalon.apache.org/framework/api/org/apache/avalon/framework/configuration/Configuration.html" class="external-link" rel="nofollow">http://avalon.apache.org/framework/api/org/apache/avalon/framework/configuration/Configuration.html</a>
for reading</p>
<p><a href="http://avalon.apache.org/framework/api/org/apache/avalon/framework/configuration/DefaultConfiguration.html" class="external-link" rel="nofollow">http://avalon.apache.org/framework/api/org/apache/avalon/framework/configuration/DefaultConfiguration.html</a>
for writing</p>
Update: Was Replace use of DOM with SAX
We have found that this bug report was a misunderstanding of the Geotools2 XMLEncoder class.
Section 3.3.2 VWFS Implementation Report
The current XML reader used to process configuration information is based on
the Document Object Model. The rest of the GeoServer application makes use of
SAX based parsers.
GeoTools2 has recently deprecated their DOM based OGC Filter and GML
parsers. The configuration subsystem and the validation subsystem use these
components.
To account for these changes we will need to port our configuration readers to a
SAX based parser.