post XML²éѯwfsµÄÎÊÌâ
var pa=" <Filter> <PropertyIsLike> <PropertyName>bl_id </PropertyName> <Literal>$('#txt').val()+¡®*¡¯ </Literal> </PropertyIsLike> </Filter>";
$.ajax({
type: "POST",
dataType:"html",
url: "http://jcdesktop/cgi-bin/mapserv?map=/map/projects/hku/floorplan.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&typename=room",
processData:false,
data:"filter="+pa,
success: function(xml){
$("#getfea").html(xml);
}
});
$('#txt').val("");
ÔÚÎı¾¿òÀïÃæÊäÈ룬µã°´Å¥Ö´ÐÐÉÏÃæ´úÂë ·µ»ØÏÂÃæ
<wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengeospatial.net//wfs/1.0.0/WFS-basic.xsd http://mapserver.gis.umn.edu/mapserver http://192.168.0.22/cgi-bin/mapserv?map=/map/projects/hku/floorplan.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=room&OUTPUTFORMAT=XMLSCHEMA">
−
<gml:boundedBy>
<gml:null>missing </gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>
°ïæ¿´¿´ÄÇÀï³ö´íÁË¡£¡£Ôõôû·µ»ØÊý¾Ý
Ïà¹ØÎÊ´ð£º
ÈçºÎ¶ÔxmlÄÚÈÝÊý¾Ý½øÐбȽÏ
ÀýÈ磺
<?xml version='1.0' encoding='utf-8'?>
<TestLIST>
<PID>40</PID>
<TestName>ÉîÛÚÊÐ</TestName>
......
<?xml version="1.0" encoding="utf-8" ?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical&q ......
XML code:
<?xml version="1.0"?>
<root>
<status>ok</status>
<body><root><prozl>1</prozl><prol><div><a href=" ......
ÔõÑùÔÚºǫ́»ñÈ¡jspÒ³ÃæÉϵ¼ÈëµÄxmlÎļþµÄ¸ù½ÚµãºÍ×ӽڵ㣬ÓÐûÓÐʵÀý²Î¿¼Ò»ÏÂ
1.
dom4j
2.
sax
3.
java xpath
google ÕÒʵÀý°É
ÏÂÃæµÄ¸ø³öµÄ´úÂë²»ÊǺÜÈ«£¬µ«ÊÇ˼·ÊÇÕâÑùµÄ£¬Äã¿ ......
<html>
<head><title></title></head>
<body>
<iframe id="myifr">
<xml version="1.0" encoding="UTF-8" standalone="yes&q ......