激情欧美日韩一区二区|国产18在线播放|黄的日本免费大片|国产色在线 | 亚洲|青青操夜夜操

Professional JavaScript for Web Developers 第四版學習筆記 CHAPTER 22:XML in JavaScript

歡歡歡歡 發表于 2021-10-31 16:50

XML DOM Support in Browsers 849
DOM Level 2 Core 850
The DOMParser Type 850
The XMLSerializer Type 851
XPath Support in Browsers 852
DOM Level 3 XPath 852
Single Node Results 854
Simple Type Results 854
Default Type Results 855
Namespace Support 856
XSLT Support in Browsers 857
The XSLTProcessor Type 857
Using Parameters 858
Resetting the Processor 859
Summary 859

------------------------------------------------

DOMParser
parseFromString
parsererror

---------------------------------------------

XMLSerializer
serializeToString

----------------------------------------------

let result = xmldom.evaluate("employee/name", xmldom.documentElement, null,
 XPathResult.ORDERED_NODE_ITERATOR_TYPE, null);

if (result !== null) {
 let element = result.iterateNext();
 while(element) {
  console.log(element.tagName);
  node = result.iterateNext();
 }
}

-------------------------------------------------

XSLTProcessor