This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IX > IXmlPropertySet2 Interface > IXmlPropertySet2.SetXml Method (ArcObjects .NET 10.4 SDK) |
Replaces existing metadata with the content defined in the XML.
[Visual Basic .NET] Public Sub SetXml ( _ ByVal xml As String _ )
[C#] public void SetXml ( string xml );
[C++]
HRESULT SetXml(
BSTR xml
);
[C++]
Parameters xml [in] xml is a parameter of type BSTR
The SetXML method replaces the entire metadata document with the Xml string supplied in the XML parameter.
To target specific XML elements, the SetPropertyX method should be used.