It seems that there is already some XML parser involved. With browser you 
should do right click – view page source before saving. Or use curl and 
download the response directly into a file

curl -o get_cap.txt 
"http://10.210.1.32:8080/Apache/cgi-bin/mapserv.exe?MAP=C:/ms4w/map/fond_mapserver.map&service=WMS&version=1.3.0&request=GetCapabilities";

If your problem deals with titles or abstracts in your mapfile, comment them 
all out first, check if GetCapabilities work, and start adding them back one be 
one. You will soon find which title makes problem.

-Jukka Rahkonen-


mathias cunault wrote:

Re: [mapserver-users] Can't get capabilities xml error message

My mapfile is in UTF8 since the start.
If saving the GetCapabilities response means right clic and save as 
mapserv.exe.xml, then here is the full response :

​​

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet href="mapserv.exe_fichiers/intl.css" type="text/css"?>
<parsererror 
xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml";>Erreur d’analyse 
XML : balise non fermée
Emplacement : 
http://10.210.1.32:8080/cgi-bin/mapserv.exe?map=C:\ms4w\map\fond_mapserver.map&amp;VERSION=1.3.0&amp;SERVICE=WMS&amp;REQUEST=GetCapabilities&amp;
Numéro de ligne 144, Colonne 9 :<sourcetext>        &lt;Title
--------^</sourcetext></parsererror>

​That's all. No line 144...

Am i right ?​



2016-11-23 11:34 GMT+01:00 Rahkonen Jukka (MML) 
<[email protected]<mailto:[email protected]>>:
Hi,

Save the GetCapabilities response on the disk, open it with text editor and see 
what there is on the line 144 at place 17. But did you already convert your 
mapfile into UTF8? You must do it anyways so do it now before making any other 
changes.

-Jukka Rahkonen-



Leehan wrote:
Re: [mapserver-users] Can't get capabilities xml error message

>I made the change you have suggested.
It has just changed the error message :
"Numéro de ligne 144, colonne 17 :
---------<Title>p"



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Can-t-get-capabilities-xml-error-message-tp5296958p5297075.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
[email protected]<mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/mapserver-users



--
----------
Mathias Cunault
chargé d’opération et de recherche
Inrap Tours - 148 av. Maginot
37000 TOURS
06 32 05 98 96
[email protected]<mailto:[email protected]>
www.inrap.fr<http://www.inrap.fr>
abonnez-vous à la lettre d'information de l'Inrap : 
http://www.inrap.fr/newsletter.php

Darth Mathias : "Topology is a pathway to many abilities some consider to be 
unnatural"
Padwan : "Is it possible to learn this power ?"
Darth Mathias : "Not from an archaeologist !"
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to