IVssExamineWriterMetadata::LoadFromXML method (vsbackup.h)

The LoadFromXML method loads an XML document that contains a writer's metadata document into an IVssExamineWriterMetadata interface.

Syntax

HRESULT LoadFromXML(
  [in] BSTR bstrXML
);

Parameters

[in] bstrXML

String that contains an XML document that represents a writer's metadata document.

Return value

The following are the valid return codes for this method.

Value Meaning
S_OK
Successfully added the bstrXML parameter value to the XML document.
S_FALSE
The XML document could not be loaded.
E_INVALIDARG
One of the parameter values is not valid.
E_OUTOFMEMORY
The caller is out of memory or other system resources.
VSS_E_INVALID_XML_DOCUMENT
The XML document is not valid. Check the event log for details. For more information, see Event and Error Handling Under VSS.
VSS_E_UNEXPECTED
Unexpected error. The error code is logged in the error log file. For more information, see Event and Error Handling Under VSS.

Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP:  This value is not supported until Windows Server 2008 R2 and Windows 7. E_UNEXPECTED is used instead.

Remarks

This method is used at restore time to load writer metadata that was saved by IVssExamineWriterMetadata::SaveAsXML at the time of the backup operation.

Users should not tamper with this metadata document.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header vsbackup.h (include VsBackup.h, Vss.h, VsWriter.h)
Library VssApi.lib

See also

IVssExamineWriterMetadata

IVssExamineWriterMetadata::SaveAsXML