Lincecum
09/07/2022, 2:49 AMconst xmlDocument = xml.Parser.fromString({
text: '<?xml version="1.0" encoding="UTF-8"?><StandardBusinessDocument><HeaderVersion>1.0</HeaderVersion></StandardBusinessDocument>'
});
// Return [Node]
xml.XPath.select({
node: xmlDocument,
xpath: '//HeaderVersion'
});
however, when the XML contain namespace it can't select using XPath
NOT working
const xmlDocument = xml.Parser.fromString({
text: '<?xml version="1.0" encoding="UTF-8"?><StandardBusinessDocument xmlns="<http://www.qualifiednamespace.com/book>"><HeaderVersion>1.0</HeaderVersion></StandardBusinessDocument>'
});
// Return []
xml.XPath.select({
node: xmlDocument,
xpath: '//HeaderVersion'
});
Any idea is to appreciate