Message Boards Message Boards

0
|
1685 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

MalformedURLException when importing XML

Posted 9 years ago

I have been trying to import an XML file (an iTunes library XML file) into Mathematica with the following syntax,

tunesdata = Import["iTunes Music Library.xml"];

This is producing the following error:

XMLGet::prserr: MalformedURLException: The URL used an unsupported protocol at Line: 2 Character: 112 in /Documents/Mathematica/mma10/iTunes 2/iTunes Music Library.xml. >>

The XML file line 2 consists of

<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

Character 112 appears to be the carriage return. The strange thing is that this worked just fine in Mathematica 9, but is producing the error in Mathematica 10.3.1.

Any ideas would be greatly appreciated.

Thanks, Miles

POSTED BY: Miles Stanhope
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract