[mapserver-users] XML mapfile

Ludovic Granjon ludovic.granjon at u-bourgogne.fr
Fri Aug 19 05:40:39 PDT 2011


Thanks Alan

Yes that's what I try to do but when I try to launch xmlstarlet I always 
have an invalid mapfile;
for exemple I join my mapfile
And the message of xmlstartlet is :

"mapfile-test_ludo.xml:69: element LayerSet: Schemas validity error : 
Element '{http://www.mapserver.org/mapserver}LayerSet': This element is 
not expected. Expected is ( {http://www.mapserver.org/mapserver}Web )."

If I delete the LayerSet bloc it's ok but  it's annoying ...

If I try with my very little mapfile.map, it seems that it always miss 
some bloc so I must insert legend, scalebar, etc

Thanks for your help

Ludovic

Le 19/08/2011 14:20, Alan Boudreault a écrit :
> IIRC, the mapfiles in svn were only to test translation and loading. You can
> take a small standard mapfile you have and write it in xml. It should be very
> straighforward and you can use the svn mapfiles as example.
>
> Let me know if you need further help.
>
> Alan
>
> On August 19, 2011 07:42:17 am Ludovic Granjon wrote:
>> Hello
>> Someone is using mapfiles in xml?
>> I tried but it does not work, is there such a minimal mapfile in xml to
>> try? Is there a documentation ? I tried unsuccessfully
>> http://trac.osgeo.org/mapserver/browser/trunk/mapserver/xmlmapfile
>> Thanks
>>
>> Ludovic
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapfile-test_ludo.xml
Type: text/xml
Size: 2519 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110819/095fc007/attachment.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ludovic_granjon.vcf
Type: text/x-vcard
Size: 149 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110819/095fc007/attachment.vcf>


More information about the MapServer-users mailing list