Flex 操作命名空间
2013-08-26 17:00
393 查看
public function equalSearch(url:String,layerNameEng:String,searchField:String,value:String):void { if(url == "" || layerNameEng == "" || searchField == "") return; var _request:XMLRequest = new XMLRequest(url,onSuccess,onFailure); var postXML:XML = <wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2" xmlns:topp="http://www.openplans.org/topp" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> <wfs:Query> <ogc:Filter> <ogc:PropertyIsEqualTo> </ogc:PropertyIsEqualTo > </ogc:Filter> </wfs:Query> </wfs:GetFeature> var ogc:Namespace = postXML.namespace("ogc"); var wfs:Namespace = postXML.namespace("wfs"); postXML.wfs::Query.@typeName = layerNameEng; postXML.wfs::Query.ogc::Filter.ogc::PropertyIsEqualTo.ogc::PropertyName = searchField; postXML.wfs::Query.ogc::Filter.ogc::PropertyIsEqualTo.ogc::Literal = value; _request.postContent = postXML; _request.duration = 0; _request.send(); _myXMLRequest.xmlRequestArr.push(_request); }
相关文章推荐
- 由“Jasperrpeorts 4.1.2升级到5.1.2对flex项目的解析”到AS3 带命名空间的XML的操作
- 由“Jasperrpeorts 4.1.2升级到5.1.2对flex项目的解析”到AS3 带命名空间的XML的操作
- Flex 4里的fx、mx以及s命名空间 [转]
- php simplexmlElement操作xml的命名空间实现代码
- Flex中处理带命名空间的XML
- xml(带有命名空间的)读写操作
- 记一次操作具有命名空间的xml文件遇到的问题
- Flex 命名空间
- Flex中处理带命名空间的XML
- 操作带命名空间xml
- 第5课 Spark组件、Halo组件和Flex命名空间
- Flex 1152:继承的定义在(命名空间public。。)存在冲突
- Flex SDK 4(Gumbo)命名空间(NameSpace)概述
- 使用Spring AOP与Annotation所需的jar包以及命名空间操作
- Linq to xml 操作带命名空间的xml
- 带有命名空间的xml 操作
- 操作带 命名空间的xml
- jQuery高级事件---模拟操作和命名空间
- Flex 组成、变量、函数、命名空间
- IO命名空间中的Directory类和File类的基本操作