<div dir="ltr"><div>Hi devs,</div><div><br></div><div>I have a problem with xml parsing when using alpine/flask Dockerfile [1] (the only minor change is upgraded Xerces version to 3.2.1 and added curl package to apk). After building and starting a container I tried to send sample POST request using curl from within the running container (I checked the xml and it's well-formated):</div><div><br></div><div><span style="font-family:monospace,monospace">curl -d pywps-flask/static/requests/execute_buffer_post.xml localhost:5000/wps</span><br></div><div><br></div><div>but I got ExceptionError:</div><div><br></div><div><span style="font-family:monospace,monospace"><?xml version="1.0" encoding="UTF-8"?><br><!-- PyWPS 4.0.0 --><br><ows:ExceptionReport xmlns:ows="<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:schemaLocation="<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a> <a href="http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd">http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd</a>" version="1.0.0"><br>  <ows:Exception exceptionCode="NoApplicableCode" locator="" ><br>      <ows:ExceptionText>Start tag expected, '&lt;' not found, line 1, column 1</ows:ExceptionText><br>  </ows:Exception><br></ows:ExceptionReport></span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace"></span><br></div><div><br></div><div>I also tried to use OWSLib to send the request and I get the result code but the output in response is not well-formated:</div><div><br></div><div><span style="font-family:monospace,monospace">        <wps:Output><br>            <ows:Identifier>buff_out</ows:Identifier><br>            <ows:Title>Buffered file</ows:Title><br>            <ows:Abstract></ows:Abstract><br>            <wps:Data><br>                <wps:ComplexData mimeType="application/gml+xml" encoding="" schema=""><br>                    <![CDATA[<br>                            &lt;ogr:FeatureCollection xmlns:xsi=&#34;<a href="http://www.w3.org/2001/XMLSchema-instance&#34">http://www.w3.org/2001/XMLSchema-instance&#34</a>; xmlns:ogr=&#34;<a href="http://ogr.maptools.org/&#34">http://ogr.maptools.org/&#34</a>; xmlns:gml=&#34;<a href="http://www.opengis.net/gml&#34">http://www.opengis.net/gml&#34</a>; xsi:schemaLocation=&#34;                            <a href="http://schemas.opengis.net/gml/2.1.2/feature.xsd&#34;&gt">http://schemas.opengis.net/gml/2.1.2/feature.xsd&#34;&gt</a>;<br>  &lt;gml:boundedBy&gt;<br>    &lt;gml:Box&gt;<br>      &lt;gml:coord&gt;&lt;gml:X&gt;-0.9514645979959721&lt;/gml:X&gt;&lt;gml:Y&gt;-0.986306232731747&lt;/gml:Y&gt;&lt;/gml:coord&gt;<br>      &lt;gml:coord&gt;&lt;gml:X&gt;1.048535402004028&lt;/gml:X&gt;&lt;gml:Y&gt;1.013693767268253&lt;/gml:Y&gt;&lt;/gml:coord&gt;<br>    &lt;/gml:Box&gt;<br>  &lt;/gml:boundedBy&gt;<br>                                                                                             <br>  &lt;gml:featureMember&gt;<br>    &lt;ogr:point_buffer fid=&#34;point_buffer.0&#34;&gt;<br>      &lt;ogr:geometryProperty&gt;&lt;gml:Polygon&gt;&lt;gml:outerBoundaryIs&gt;&lt;gml:LinearRing&gt;&lt;gml:coordinates&gt;1.04853540200403,0.013693767268253 1.0471649367586,-0.038642188974691 1.0430572973723,-0.0908346959994 11.03622374259917,0.170128232308481 1.0430572973723,0.118222230535904 1.0471649367586,0.066029723511194 1.04853540200403,0.013693767268253&lt;/gml:coordinates&gt;&lt;/gml:LinearRing&gt;&lt;/gml:outerBoundaryIs&gt;&lt;/gml:Polygon&gt;&lt;/ogr:geometryProperty&gt;<br>    &lt;/ogr:point_buffer&gt;<br>  &lt;/gml:featureMember&gt;<br>&lt;/ogr:FeatureCollection&gt;<br><br>                    ]]><br>                </wps:ComplexData><br>            </wps:Data><br>        </wps:Output></span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif">Any idea what could be wrong? I hadn't this problem before. It started after I built a new Docker image (but from the same Dockerfile). I suspect expat or xerces but not really sure what I should be looking for.</font></span></div><div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif"><br></font></span></div><div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif">Cheers,</font></span></div><div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif">Adam</font><br></span></div><div><br></div><div><br></div><div>[1]: <a href="https://github.com/geopython/pywps-flask/blob/master/docker/alpine/flask/Dockerfile">https://github.com/geopython/pywps-flask/blob/master/docker/alpine/flask/Dockerfile</a><br></div></div>