[mapguide-users] Modify mapdefinition in a layout

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Thu Mar 26 10:33:48 EDT 2009

Even if you don't have any xsd files in c:\temp, you should be able to 
open the xml document using Internet Explorer (just drag it into it).

Have you tried to not change the xml, and just save it back to MapGuide 
after reading it?
(In your code, just comment out the part that writes the new Map id into 
the xml.)

Regards, Kenneth Skovhede, GEOGRAF A/S

euskalmap skrev:
> HI,
> Yes i have the file WebLayout-1.0.0.xsd in the directory C:\Program Files\MapGuideOpenSource2.0\Server\Schema\.
> which method you want that I use to save the weblayout ?
> If i save the weblayout in my code with the instruction ,
> FileStream fs = File.Create("c:\\temp\\test.xml");
> fs.Write(encodedBytes, 0, encodedBytes.Length);
> it is normal that i can not read the weblayout because the file WebLayout-1.0.0.xsd is not present in c:\temp directory.
> I have not understand how saving and reading the weblayout ?
> Other question : Perhaps my mapguide server is not correctly parameterized? 
> Thanks for your lelp.
> Yes, it is very strange that it happens with only weblayouts.
> Do you have the file:
> C:\Program Files\MapGuideOpenSource2.0\Server\Schema\WebLayout-1.0.0.xsd
> Can you save the weblayout if you just read it, and then save it? (eg. 
> not changing anything).
> Regards, Kenneth Skovhede, GEOGRAF A/S
> euskalmap skrev:
>> Hi,
>> I have try your maestro class in my sample like this : 
>> http://patxi.mayol.free.fr/sample2.asp
>> http://patxi.mayol.free.fr/sample2.asp 
>> I have always the same error.
>> In the mapguide log file it say 'An exception occurred in the XML parser.'
>> and at the end i say about an error in
>> MgResourceContentManager.ValidateDocument.
>> Perhaps, Mapguide server can not find the WebLayout.1.0.0.xsd file ?
>> What you think about it?.
>> NB:It is very strange that there is no problem with filter in layer and as
>> much problem to modify mapdefinition in layout !!!
>> Thanks
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090326/767a406f/attachment.html

More information about the mapguide-users mailing list