Skip to content
Advertisement

Cannot read properties of undefined (reading ‘childNodes’)

I am trying to parse a text to a text/xml and get the value that is inside a child Node but is giving this error to me (Cannot read properties of undefined (reading ‘childNodes’). I want the value true inside of the GetValidUserPasswordResult. This is the code that i am making:

JavaScript

Advertisement

Answer

I already found the answer, i was doing on node.js but the implementation of DOMParser on node is xmldom, so the result was this one

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement