Help with splitting a file path

Here is the code:


tagOutput = theLines.getElementsByTagName('Output')[0]
tagName = tagOutput.getElementsByTagName('Name')[0]
pathValue = tagName.firstChild.data

And when I print pathValue it returns: D:\Backburner testing est animation 01 eapot01_.png