Home > Software engineering >  Consult everybody a great god, and how to use VB to open the following format of the XML file? File
Consult everybody a great god, and how to use VB to open the following format of the XML file? File

Time:09-24


Consult everybody a great god, and how to use VB to open the following format of the XML file? File a statement in addition to the XML version and encoding, contains two attributes
<? The XML version="1.0" encoding="utf-8" personTemplateNo="P3002 dataTemplateNo"="33200 _009"?>

34 & lt;/totalCounts>


Now use the following code, you can open statement for & lt; ? The XML version="1.0" encoding="utf-8" & gt; The XML file
Dim target_file As String
Dim perso_template As String
Dim temp As String
Dim xmldoc As DOMDocument
Dim root_node As IXMLDOMNode
Dim batch_node As IXMLDOMNode
Dim data_node As IXMLDOMNode
Dim batch_info_dic As Collection
The Set xmldoc=New DOMDocument
Xmldoc. Load file_name
If xmldoc. DocumentElement Is Nothing Then
Trace "XML file is empty"
The Exit Function
End the If

Thank you very much!
  • Related