Repository.XFRACAS.SerializeXMLObjectToByteArray

A helper function to serialize XMLs for import into XFRACAS through a byte array.

Syntax

 * SerializeXMLObjectToByteArray( pData, pObject )

Parameters
 * pData: A defined byte array to return the


 * pObject: A serializable XML object.

Usage Example
' ' Success  = Success = MyRepository.ConnectToRepository("RepositoryFileNamePath") ' xmlObject = ' byteArray = ' SerializeSuccess SerializeSuccess = MyRepository.SerializeXMLObjectToByteArray(byteArray, xmlObject)

Reformatted Usage Example
Private WithEvents MyRepository As New Repository

Dim Success As Boolean = False Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")

Dim xmlObject As Object = Nothing 'populate the xmlObject with values to import

Dim byteArray As Byte = Nothing

Dim SerializeSuccess As Boolean SerializeSuccess = MyRepository.SerializeXMLObjectToByteArray(byteArray, xmlObject)