"Path Too Long" Error when readina string of XML
-
Hey all, I get the following error when using the load method of XMLDocument (the XML is in string format) There is no path, it is justa string... anyone come across this? TIA, Matt --------------ERROR------------- An unhandled exception of type 'System.IO.PathTooLongException' occurred in mscorlib.dll Additional information: The path is too long after being fully qualified. Make sure path is less than 260 characters. --------------ERROR------------- --------------CODE ERRORING ON------------ trackXMLdoc.Load(trackXMLstr) 'dim trackXMLdoc as New XMLDocument() --------------CODE ERRORING ON------------- --------------XML (from debug window)------------- trackXMLstr " Shitbag 9 2962 \\Mediabox\Music\Gomez\Abandoned Sopping Trolley Hotline\Gomez - Abandoned Shopping Trolley Hot - 01 - Shitbag 9.mp3 1 261 " String --------------XML (from debug window)------------- PS. There was more XML and I can post/email it if it'd help. But the message blackmailed me ;o). Made me think of the poor chaps with 56K modems!
-
Hey all, I get the following error when using the load method of XMLDocument (the XML is in string format) There is no path, it is justa string... anyone come across this? TIA, Matt --------------ERROR------------- An unhandled exception of type 'System.IO.PathTooLongException' occurred in mscorlib.dll Additional information: The path is too long after being fully qualified. Make sure path is less than 260 characters. --------------ERROR------------- --------------CODE ERRORING ON------------ trackXMLdoc.Load(trackXMLstr) 'dim trackXMLdoc as New XMLDocument() --------------CODE ERRORING ON------------- --------------XML (from debug window)------------- trackXMLstr " Shitbag 9 2962 \\Mediabox\Music\Gomez\Abandoned Sopping Trolley Hotline\Gomez - Abandoned Shopping Trolley Hot - 01 - Shitbag 9.mp3 1 261 " String --------------XML (from debug window)------------- PS. There was more XML and I can post/email it if it'd help. But the message blackmailed me ;o). Made me think of the poor chaps with 56K modems!
I'm not sure if I'm reading this correctly, but is trackXMLstr actually the content of the xml? If it is, you need to use the
LoadXml
function, not theLoad
function, which accepts the path of the xml file, not the content itself. Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone