Hi all,
I use EditSLD tool in Mapbuilder to change SLD of a layer. I know that when
I refresh the browser, SLD of that layer will be changed to default sld.
Thus, I want to save SLD content (which I have changed) to a file, I do
flowing:

StyleNode = config.objects.mainMap.doc.selectSingleNode
('//wmc:Layer[wmc:Name="durbuy:pa_83012"]/wmc:StyleList/wmc:Style');
str = (new XMLSerializer()).serializeToString(SldNode);

And I save str to a file as String. After that, when I want to load my SLD,
I read that file to get StyleNode (which I saved)  as string. But I don't
know how to append this string (in xml format) to layer durbuy:pa_83012, and
apply this Style for that layer. Please, show me. Thank you so much.

-- 
Nguyễn Đình Toán

-------------------------
Neu khong doc duoc tieng Viet, vui long vao menu View --> chon Encoding -->
chon Unicode (UTF-8). Cam on.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to