Creates a BargeEx API document class instance from a CICA XML document and returns an IDocument interface for the created class instance.

Namespace:  BargeEx
Assembly:  BargeEx (in BargeEx.dll)
Version: 3.0.400.140 (3.0.400.140)

Syntax

C#
public static IDocument CreateDocument(
	IXPathNavigable document
)
Visual Basic (Declaration)
Public Shared Function CreateDocument ( _
	document As IXPathNavigable _
) As IDocument
Visual C++
public:
static IDocument^ CreateDocument(
	IXPathNavigable^ document
)

Parameters

document
Type: System.Xml.XPath..::.IXPathNavigable
An object implementing the IXPathNavigable interface. In the Microsoft .NET Framework, this can be either an XmlNode (typically an XmlDocument), or an XPathDocument containing the document to use when creating the BargeEx API document class instance.

Return Value

An IDocument interface for a BargeEx API document class instance created using the document parameter.

Exceptions

ExceptionCondition
System..::.ArgumentNullException The value of the document parameter is a null reference (Nothing in Visual Basic).
BargeEx..::.UnsupportedDocumentException The value of the document parameter is an unsupported document.

See Also