MCPcopy Index your code
hub / github.com/SmartTokenLabs/TokenScript / getXMLItemText

Function getXMLItemText

bootstrap-js/modules/ts_helpers.js:210–218  ·  view source on GitHub ↗
(xmlDoc, selector, context = '', fallbackSelector = '', debug = false)

Source from the content-addressed store, hash-verified

208 * @returns {*}
209 */
210export function getXMLItemText(xmlDoc, selector, context = '', fallbackSelector = '', debug = false){
211 let item;
212 if (item = getXMLItem(xmlDoc, selector, context, fallbackSelector)) {
213 return item.innerHTML;
214 } else {
215 debug && console.log(selector);
216 debug && console.log('Cant find value');
217 }
218}
219
220/*
221parse XML and return innerHTML value by selector (XPath)

Callers 1

getContractAddressFunction · 0.85

Calls 1

getXMLItemFunction · 0.85

Tested by

no test coverage detected