Hi
I got a problem using national characters in the info.xml file
if I got an info.xml like:
--
<?xml version="1.0" encoding="UTF-8"?>
<featureType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>bjorneklo</Name>
<Title>Forekomster af Bjorneklo</Title>
<Abstract>Forekomster af bjorneklo i Viborg Amt</Abstract>
<Keywords>Bjorneklo, Viborg Amt</Keywords>
.....
What I really want was i the title & Abstract, spelling the 'bjorneklo' like 'bjørneklo', like:
(even that encoding is set to UTF-8 )
--
<?xml version="1.0" encoding="UTF-8"?>
<featureType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>bjorneklo</Name>
<Title>Forekomster af Bjørneklo</Title>
<Abstract>Forekomster af bjørneklo i Viborg Amt</Abstract>
<Keywords>Bjorneklo, Viborg Amt</Keywords>
....
But then it seels that the xml parser i tomcat are complaining and I get follofing error in the browser :
- <ServiceExceptionReport version="1.2.0" xsi:schemaLocation="http://www.opengis.net/ogc ../wfs/1.0.0/OGC-exception.xsd">
- <ServiceException locator="Class FeatureResponse, in method getQuery">
Could not find Feature Type named: bjorneklo, feature information is not in the data folder.
</ServiceException>
</ServiceExceptionReport>
--
-- And the /var/tomcat4/logs/catalina.out tells why :
^@69632 [FINEST] org.vfny.geoserver.config.TypeRepository - examining: /var/tomcat4/webapps/geoserver/data/featureTypes/bjorneklo
^@69634 [FINEST] org.vfny.geoserver.config.TypeRepository - is dir: true
^@69637 [FINEST] org.vfny.geoserver.config.TypeRepository - examining: /var/tomcat4/webapps/geoserver/data/featureTypes/bjorneklo/info.xml
^@69639 [FINEST] org.vfny.geoserver.config.TypeRepository - is dir: false
^@69642 [FINEST] org.vfny.geoserver.config.TypeRepository - adding: /var/tomcat4/webapps/geoserver/data/featureTypes/bjorneklo/info.xml
^@69644 [FINEST] org.vfny.geoserver.config.TypeInfo - reading typeinfo for /var/tomcat4/webapps/geoserver/data/featureTypes/bjorneklo/info.xml
^@69658 [FINER] org.vfny.geoserver.config.TypeInfo - pathToSchema is /var/tomcat4/webapps/geoserver/data/featureTypes/bjorneklo/schema.xml
^@69711 [WARNING] org.vfny.geoserver.config.FeatureType - trouble parsing XML in /var/tomcat4/webapps/geoserver/data/featureTypes/bjorneklo/info.xml: The entity "oslash" was referenced, but not declared.
^@69715 [INFO] org.vfny.geoserver.config.TypeInfo - Trouble reading featureType info at /var/tomcat4/webapps/geoserver/data/featureTypes/bjorneklo/info.xml: trouble parsing XML in /var/tomcat4/webapps/geoserver/data/featureTypes/bjorneklo/info.xml: The entity "oslash" was referenced, but not declared.
^@73227 [FINEST] org.vfny.geoserver.requests.RequestKvpReader - raw request: typeName=bjorneklo
^@73230 [FINEST] org.vfny.geoserver.requests.RequestKvpReader - cleaned request: typeName=bjorneklo
--
So can I do anything to get the XML parser to accept &.....; characters
And I did try just to put in the lettet 'ø' (there shuld be an o with an / over between the '')
that did also not function.
(Will this also be a problem if the data contains national letters ? hmm, I will know in a hour or two when I get the real data)
- niels