[TinyOWS-users] xml isn't valid - scratching my head

Alexandre Dube adube at mapgears.com
Wed Mar 23 10:49:03 EST 2011


Hi,

   I get "xml isn't valid" responses on any Insert/Update/Delete 
transactions.

   TinyOWS trunk r389
   Ubuntu 8.04
   Postgresql 8.3
   Postgis 1.5.2
   libxml2 2.6.31

   I'm using the mapserver mapfile config as well.  Below are the 
details of the log.  There was nothing in the postgresql log (it doesn't 
seem to get that far).  Any hint ?  Is it possible to see a more verbose 
of the reason the xml isn't valid ?

Regards,

Alexandre


== the log ==

[Wed Mar 23 15:40:45 2011] [EVENT] == Connection PostGIS ==
[Wed Mar 23 15:40:45 2011] [EVENT] == Filling Storage ==
[Wed Mar 23 15:40:45 2011] [QUERY] {{content of transaction}}
[Wed Mar 23 15:40:45 2011] [ERROR] xml isn't valid
[Wed Mar 23 15:40:45 2011] [EVENT] == TINYOWS SHUTDOWN ==


== Insert query ==

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" 
version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Insert><feature:popplace 
xmlns:feature="http://localhost"><feature:the_geom><gml:Point 
xmlns:gml="http://www.opengis.net/gml" 
srsName="EPSG:900913"><gml:coordinates decimal="." cs="," ts=" 
">-7944558.0381828,6286180.693023</gml:coordinates></gml:Point></feature:the_geom><feature:name>test</feature:name></feature:popplace></wfs:Insert></wfs:Transaction>


== Update query ==

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" 
version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Update 
typeName="feature:popplace" 
xmlns:feature="http://localhost"><wfs:Property><wfs:Name>the_geom</wfs:Name><wfs:Value><gml:Point 
xmlns:gml="http://www.opengis.net/gml" 
srsName="EPSG:900913"><gml:coordinates decimal="." cs="," ts=" 
">-8048195,6256704</gml:coordinates></gml:Point></wfs:Value></wfs:Property><wfs:Property><wfs:Name>area</wfs:Name><wfs:Value>0</wfs:Value></wfs:Property><wfs:Property><wfs:Name>perimeter</wfs:Name><wfs:Value>0</wfs:Value></wfs:Property><wfs:Property><wfs:Name>popplace_</wfs:Name><wfs:Value>301</wfs:Value></wfs:Property><wfs:Property><wfs:Name>popplace_i</wfs:Name><wfs:Value>3</wfs:Value></wfs:Property><wfs:Property><wfs:Name>unique_key</wfs:Name><wfs:Value>EGDZD</wfs:Value></wfs:Property><wfs:Property><wfs:Name>name_e</wfs:Name><wfs:Value>g</wfs:Value></wfs:Property><wfs:Property><wfs:Name>name_f</wfs:Name><wfs:Value>g</wfs:Value></wfs:Property><wfs:Property><wfs:Name>reg_code</wfs:Name><wfs:Value>24</wfs:Value></wfs:Property><wfs:Property><wfs:Name>nts50</wfs:Name><wfs:Value>032A16</wfs:Value></wfs:Property><wfs:Property><wfs:Name>lat</wfs:Name><wfs:Value>485300</wfs:Value></wfs:Property><wfs:Property><wfs:Name>long</wfs:Name><wfs:Value>721400</wfs:Value></wfs:Property><wfs:Property><wfs:Name>sgc_code</wfs:Name><wfs:Value>2492025</wfs:Value></wfs:Property><wfs:Property><wfs:Name>capital</wfs:Name><wfs:Value>0</wfs:Value></wfs:Property><wfs:Property><wfs:Name>pop_range</wfs:Name><wfs:Value>3</wfs:Value></wfs:Property><wfs:Property><wfs:Name>name</wfs:Name><wfs:Value>Dolbeau2</wfs:Value></wfs:Property><ogc:Filter 
xmlns:ogc="http://www.opengis.net/ogc"><ogc:FeatureId 
fid="popplace.301"/></ogc:Filter></wfs:Update></wfs:Transaction>

== Delete query ==
<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" 
version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Delete 
typeName="feature:popplace" xmlns:feature="http://localhost"><ogc:Filter 
xmlns:ogc="http://www.opengis.net/ogc"><ogc:FeatureId 
fid="popplace.298"/></ogc:Filter></wfs:Delete></wfs:Transaction>

-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the TinyOWS-users mailing list