Hi everybody!
As the following method, when I set it's return to an <img> src, the geoserver throws out this Exception: XML document structures must start and end within the same entity. But the XML of SLD_BODY is correct in IE. What's wrong?
P.S. I have brought forward the question: http://sourceforge.net/mailarchive/forum.php?thread_id=30903533&forum_id=37206. But the accessory of the e-mail can't be shown. So I give it again.
function getUrlSld(){
var url = "http://" + window.location.host + "/geoserver/wms?" + "LAYERS=tiger:poi"
+ "&FORMAT=image/gif"
+ "&TRANSPARENT=TRUE"
+ "&WIDTH=800"
+ "&HEIGHT=500"
+ "&REQUEST=GetMap"
+ "&STYLES=" + "&SRS=EPSG:4326"
+ "&VERSION=1.1.1"
+ "&BBOX=-74.02924949245278,40.70060354838641,-73.9883552568504,40.72110115289822"
+ "&SLD_BODY="
+ "<StyledLayerDescriptor version='1.0.0'>"
+ "<NamedLayer>"
+ "<Name>tiger:poi</Name>"
+ "<UserStyle>"
+ "<FeatureTypeStyle>"
+ "<Rule>"
+ "<Name>blinking</Name>"
+ "<Filter>"
+ "<Or>"
+ "<PropertyIsEqualTo>"
+ "<PropertyName>NAME</PropertyName>"
+ "<Literal>art</Literal>"
+ "</PropertyIsEqualTo>"
+ "<PropertyIsEqualTo>"
+ "<PropertyName>NAME</PropertyName>"
+ "<Literal>church</Literal>"
+ "</PropertyIsEqualTo>"
+ "<PropertyIsEqualTo>"
+ "<PropertyName>NAME</PropertyName>"
+ "<Literal>fire</Literal>"
+ "</PropertyIsEqualTo>"
+ "</Or>"
+ "</Filter>"
+ "<PointSymbolizer>"
+ "<Graphic>"
+ "<Mark>"
+ "<WellKnownName>circle</WellKnownName>"
+ "<Fill>"
+ "<CssParameter name='fill'>#FF0000</CssParameter>"
+ "<CssParameter name='fill-opacity'>1.0</CssParameter>"
+ "</Fill>"
+ "</Mark>"
+ "<Size>11</Size>"
+ "</Graphic>"
+ "</PointSymbolizer>"
+ "</Rule>"
+ "</FeatureTypeStyle>"
+ "</UserStyle>"
+ "</NamedLayer>"
+ "</StyledLayerDescriptor>";
return url;
}
_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn