I need to export some of the feature classes to an xml file ("export xml workspace") quite often so I'd like to automate the process. I've found an example here how to export a feature dataset to an xml file. I haven't been able to modify the code so that it would export only the feature classes I want (for example only the ones that start with a letter 'A'). I also need to export the tables and relationshipclasses (schema only).
Is this possible at all? I know there is an interface IFeatureClassName
, but I don't know how to use it in this case.
Should this be done with arcpy instead?
I'm using ArcGIS 10.0 SP3.
Best Answer
Instead of getting the dataset:
You can get the feature class by:
See this thread:
Exporting/importing a geodatabase feature class to an XML file
UPDATE
You can get fc names within geodatabase/feature dataset using this code (solution in VB.NET):
Code referenced from this post:
ArcObjects - enumerating feature classes and datasets within a geodatabase