Is it possible to export shapefiles or rasters in XML file format from ArcGIS for Desktop?

  • 6
    See A quick tour of exporting data.
    – Erica
    Sep 26 '14 at 11:27
  • 3
    This is really a question that a quick search on google would have easily resolved.
    – pvdev
    Sep 26 '14 at 11:55
  • 3
    Come on GIS.SE community! 5 downvotes in 2 hours for a question that is neither poorly written nor off-topic? By piling on downvotes all we do is show Charly and all new-comers that this isn't a very friendly and open community. From SE: "Down-voting should be reserved for extreme cases. It's not meant as a substitute for communication and editing." If it's spam or a duplicate flag it for a moderator. If the question is 'wrong' (and I don't know how a question can be) then leave a comment or edit it. Erica and lcoursey already did the job here (good for them); why pile on the downvote further? Sep 26 '14 at 13:47
  • 1
    @WhiteboxDev Well, it might not be considered reason enough for downvoting, but our Help also states that one should thoroughly search for an answer before asking [a] question.
    – Martin
    Sep 26 '14 at 14:04
  • 1
    @Martin I completely agree with you, but which do you think drove the point home better, lcoursey's excellent comment or the five downvotes? My guess is that the downvote pile-on did nothing more than tell Charly we don't like their questions and we'll be lucky to see them here again. It's the equivalent to a group gathering around the school-yard bully as he picks on the little guy. The comment on the other hand will have the effect of improving any future questions. I'm talking about building a more inclusive community here and downvotes to excess don't help with that. Sep 26 '14 at 14:09

Data needs to located in a geodatabase in order to export to XML. You can do this manually, or use the tool Export XML Workspace Document (Data Management). For the manual approach, simply right-click the featureclass or raster dataset within the file geodatabase > Export > XML Workspace Document.

enter image description here

Which then brings up the following GUI, where you can specify the export

enter image description here

  • 1
    ...Well thought out and articulated answers, now that does help build a better community! Sep 26 '14 at 16:07

If you have the Data Interoperability extension (paid license) you can export vector data (i.e. shapefiles) to the GML simple features (GML-SF) xml profile.

A free and open source option is to use the ogr2ogr command-line utility from the GDAL/OGR project. i.e. ogr2ogr -f GML somevectors.gml somevectors.shp. You can install GDAL/OGR from the GIS Internals site or by using the OSGEO4W installer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.