Welcome to Get-XML-Version.
File to read: ./atlassian-plugin.xml
XPath: /atlassian-plugin/@key
File was read successfully. Proceeding to parse DOM.
Found 1 nodes.
/Users/debt/Workspace/get-xml-info/index.js:43
output.push(firstChild.data);
^
TypeError: Cannot read property 'data' of null
at read (/Users/debt/Workspace/get-xml-info/index.js:43:34)
at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)
Supports to read attribute value.
For example, given the xml file as below
xPath
//plugin/@key
will returnplugin-key
With current implementation it throws error: