Load WFS with XML query
Load a WFS feature table using an XML query.
QueryParameters objects can't represent all possible queries that can be made against a WFS feature service. For example, Runtime query parameters don't support wildcard searches. You can provide queries as raw XML strings, allowing you to access query functionality not available with
Run the sample and view the data loaded from the the WFS feature table.
- Create a
FeatureLayerto visualize the table.
- Set the feature request mode to
PopulateFromServiceAsyncto populate the table with only those features returned by the XML query.
This service shows trees in downtown Seattle and the surrounding area. An XML-encoded
GetFeature request is used to limit results to only trees of the genus Tilia.
For additional information, see the underlying service on ArcGIS Online.
feature, OGC, query, service, web, WFS, XML
<?xml version="1.0" encoding="utf-8" ?> <ContentPage x:Class="ArcGISRuntimeXamarin.Samples.WfsXmlQuery.WfsXmlQuery" xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms"> <Grid> <esriUI:MapView x:Name="MyMapView" /> </Grid> </ContentPage>