[Geoserver-devel] Line breaks transaction geoserver

I have this request:
<wfs:Transaction service="WFS" version="1.0.0"
  xmlns:xxx="http://xxxx.org"
  xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:wfs="http://www.opengis.net/wfs&quot;&gt;
  <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???

Thanks in advance!!!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Line-breaks-transaction-geoserver-tp5056634.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

On Wed, May 29, 2013 at 10:02 AM, Àngela Feliu <afeliug@anonymised.com> 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&quot;
  xmlns:wfs="http://www.opengis.net/wfs&quot;&gt;
  <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

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

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

I already used CDATA with no hope

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Line-breaks-transaction-geoserver-tp5056634p5056660.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

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


View this message in context: Re: Line breaks transaction geoserver
Sent from the GeoServer - Dev mailing list archive at Nabble.com.