????? ??????? ????????? XPath ?? selectNodes DOM MSXML ?????

?????? ????????? ?????? ?????????
???? ???????: 288913 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

??????

???? ??????? ????????? ???? XML Path (XPath) ????????? ?? ??????? XML ?? ?????? DOM ??? selectNodes ?? selectSingleNode. ????????? ????????? ???????? ?? XSLPattern ??????? ?? ????????? ???????. ???????? XPath ????? ????? ????? SelectionLanguageDOMDocument ??? XPath. ???? XPath ?????? ?? ???????; ??? ???? ??????? ???? ???? ?? ??????? ????? ??? ??? ????? ? ???????.

??????? ????

???? ????? ????????? ???????? ?????? ????? ??????? XPath ?? ??????? selectNodes:
  1. ??? ????? Visual Basic ?????? EXE ????? ????.
  2. ?? ??????? ??? ???????? ??? ????? ?? ?? ?????? ???? ??? XML Microsoft ? v3.0.
  3. ?? ?????? ????????? ???????? ??????? ??? ????? Form_Load:
    Dim dom As DOMDocument30
    Dim nodelist As IXMLDOMNodeList
    Dim strPath As String
       
    Set dom = New DOMDocument30
    dom.async = False
       
    dom.loadXML "<Admin><Area AreaName='a'/></Admin>"
       
    dom.setProperty "SelectionLanguage", "XPath"
    strPath = "/Admin/Area[string-length(@AreaName) = 1]"
    Set nodelist = dom.documentElement.selectNodes(strPath)
       
    Debug.Print "Found " & nodelist.length & " Node"
    					
  4. ?? ?????? ??????? ?? ???? ?? ???? ?????? ?????? ?????? ??? ???? 1.
  5. ?????? ?????? ????????? ??????? ?????? ??? ????????? ???????? ???? ?????? setProperty. ????? ????????? ???????? ?? ???? ????? ??? ??? XSL ?????? ????? ?? ????? ?????? ??? ?????.
??????:
  • ?? MSXML ??????? 2.6 ????? ??? ????? ???? ??? XML Microsoft ? v2.6 ?? ????? Visual Basic ?? ?? ???????? ??????? ProgID ?? DOMDocument26.
  • ??? ??? ?? ?? ????? ????? ???? ?? MSXML ?? ????? ????? ???? ?? ????? ????? ???????? ???????? ?? ??? ??????? ?????, ??? ???? ???? ???? ??????? GUIDs ?? ProgIDs ???? ???????. ??? ???? ??????? MSXML ?????? ??????? 4 ??? ?? ??? ????? ??? ???. ?????? ?????? ??? ??????? ??????? ?? ????? ?????Microsoft ??????? ????????? ??? ???????? ?????? ????? ???????? ???????? ???????? ???? MSXML 4.0: Q305019 INFO: GUIDs ????? ?? MSXML 4.0 ? ProgIds. ??? ?? MSXML ??????? 4.0 ???? ???? XML Microsoft v4.0 ?? ????? Visual Basic ?? ?? ???????? ??????? ProgID ?? DOMDocument40.
  • ??? ????? ?? Microsoft Visual C++ ? ????? setProperty ????? ??? ?? ????? IXMLDOMDocument2.
  • ?????? ??? ??????? ? ?? ????? ????????? ???????? ??????? ????? ???????. ????? ?????? ??????? ????? ?? ?????? ????? ??????? ?????????.

?????

?????? ??? ??????? ??????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
317663????? ??????? DOM ?? .NET Framework ?? Visual Basic .NET ?????? XML Access

???????

???? ???????: 288913 - ????? ??? ??????: 27/????? ??????/1425 - ??????: 1.4
????? ???
  • Microsoft XML Parser 2.6
  • Microsoft XML Parser 3.0
  • Microsoft XML Core Services 4.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0
????? ??????: 
kbmt kbhowto KB288913 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????288913

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com