Hi,
Is it possible to add an xml declaration (i.e. <?xml version="1.0" encoding="UTF-8"?>) to the beginning of a REST get-response?
My particular example involves the coveragestores.xml file, which is retrieved via the URL: http://localhost:8080/geoserver/rest/workspaces//coveragestores.xml and the current response is:
cs1
cs2
cs3
The reason I need the declaration, is that I’m auto-processing the retrieved xml-file and my processor checks the file for the xml entity.
Thanks in advance.
Regards,
Paula
Paula Perkola
Trainee Research Scientist
VTT
This is a good suggestion. I have submitted a Jira issue:
http://jira.codehaus.org/browse/GEOS-4056
Thank you for your request.
Kind regards,
Ben.
On 14/07/10 15:59, Perkola Paula wrote:
Hi,
Is it possible to add an xml declaration (i.e.<?xml version="1.0" encoding="UTF-8"?>) to the beginning of a REST get-response?
My particular example involves the coveragestores.xml file, which is retrieved via the URL: http://localhost:8080/geoserver/rest/workspaces/<ws>/coveragestores\.xml and the current response is:
<coverageStores>
<coverageStore>
<name>cs1</name>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/<ws>/coveragestores/cs1\.xml<view\-source:http://localhost:8080/geoserver/rest/workspaces/syke/coveragestores/swe\_20100401\.xml>" type="application/xml"/>
</coverageStore>
<coverageStore>
<name>cs2</name>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/<ws>/coveragestores/cs2\.xml<view\-source:http://localhost:8080/geoserver/rest/workspaces/syke/coveragestores/swe\_20100401\.xml>" type="application/xml"/>
</coverageStore>
<coverageStore>
<name>cs3</name>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/<ws>/coveragestores/cs3\.xml<view\-source:http://localhost:8080/geoserver/rest/workspaces/syke/coveragestores/swe\_20100401\.xml>" type="application/xml"/>
</coverageStore>
</coverageStores>
The reason I need the declaration, is that I'm auto-processing the retrieved xml-file and my processor checks the file for the xml entity.
Thanks in advance.
Regards,
Paula
***************************************
Paula Perkola
Trainee Research Scientist
VTT
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineering Team Leader
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre