Line breaks transaction geoserver

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Line breaks transaction geoserver

Àngela Feliu
I have this request:
<wfs:Transaction service="WFS" version="1.0.0"
  xmlns:xxx="http://xxxx.org"
  xmlns:ogc="http://www.opengis.net/ogc"
  xmlns:wfs="http://www.opengis.net/wfs">
  <wfs:Update typeName="xxx:TABLE">
    <wfs:Property>
      <wfs:Name>FIELD</wfs:Name>
      <wfs:Value>aaa
      bbb</wfs:Value>
    </wfs:Property>
    <ogc:Filter>
      <ogc:FeatureId fid="TABLE.1"/>
    </ogc:Filter>
  </wfs:Update>
</wfs:Transaction>

Although the line break is ignored in geoserver.
Any idea???

Thanks in advance!!!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Line breaks transaction geoserver

geowolf
On Wed, May 29, 2013 at 10:02 AM, Àngela Feliu <[hidden email]> wrote:
I have this request:
<wfs:Transaction service="WFS" version="1.0.0"
  xmlns:xxx="http://xxxx.org"
  xmlns:ogc="http://www.opengis.net/ogc"
  xmlns:wfs="http://www.opengis.net/wfs">
  <wfs:Update typeName="xxx:TABLE">
    <wfs:Property>
      <wfs:Name>FIELD</wfs:Name>
      <wfs:Value>aaa&#xA;
      bbb</wfs:Value>
    </wfs:Property>
    <ogc:Filter>
      <ogc:FeatureId fid="TABLE.1"/>
    </ogc:Filter>
  </wfs:Update>
</wfs:Transaction>

Although the line break is ignored in geoserver.
Any idea???

No precise idea, but a doubt, there are some xml elements in which 
the schema says subsequent spaces have to be squashed into a single
whitespace, that normally ends up eating newlines.

Not sure if this is the case, but if it is, a solution would be to put your
string in a CDATA section 

Cheers
Andrea

--
==
GeoServer training in Milan, 6th & 7th June 2013!  Visit http://geoserver.geo-solutions.it for more information.
==

Ing. Andrea Aime 
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549


-------------------------------------------------------

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Geoserver-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Line breaks transaction geoserver

Àngela Feliu
In reply to this post by Àngela Feliu
I already used CDATA with no hope
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Line breaks transaction geoserver

mmarco
This post was updated on .
Hi,

I have exactly the same problem with Geoserver 2.10.3.

The WFS INSERT operation keeps the line breaks. However, the WFS UPDATE removes them.

Does anyone have also problems with WPS UPDATE operation?
Is there a workaround solution?


Thanks in advance
Montse


Loading...