OpenFromFile()

Top  Previous  Next

Object: EHL7.QSXML

FileName: EHL7.dll

 

METHOD

 

Name: OpenFromFile()

Parameters:

1.strFileName (String) the name of the XML file you wish to open

Returns: Boolean

Description: Creates a new XML document by opening the file provided in strFileName, a currently open document is destroyed.

 

See Also: GetRootChildren(), XML Property, OpenFromString()

 

Example:

Dim myXMLObj As New EHL7.QSXML

Dim strXML As String

Dim ndRT As Object

Dim ndChild As Object

With myXmlObj

.ClearErrors

Call .OpenFromFile("C:\MyTestFile.XML")

If .IsError Then

  MsgBox .LastError

  .ClearErrors

  Exit Sub

End If

Msgbox .XML

End With

Set myXMLObj = Nothing