Skip to main content
Tweeted twitter.com/#!/StackMma/status/505994319636221952
Middling clean-up
Source Link
m_goldberg
  • 108.6k
  • 16
  • 107
  • 263

Import iTunes xml data and convert it into Mathematica 10a dataset or table

I have an xml file with song data from iTunes (https://dl.dropboxusercontent.com/u/1012958/iTunes%20Library.xml) and I'd like to import it to MathematicaMathematica to do some statistics. I get an XMLObject like this:

XMLObject[ "Document"][{XMLObject["Declaration"]["Version" -> "1.0", "Encoding" -> "UTF-8"], XMLObject["Doctype"]["plist", "Public" -> "-//Apple Computer//DTD PLIST 1.0//EN", "System" -> "http://www.apple.com/DTDs/PropertyList-1.0.dtd"]}, XMLElement[ "plist", {"version" -> "1.0"}, {XMLElement[ "dict", {}, {………...}], {}, "Valid" -> True] 

How can iI convert it to a MathematicaMathematica 10 Datasetdataset or a matrixtable?

Import iTunes xml into Mathematica 10

I have an xml file with song data from iTunes (https://dl.dropboxusercontent.com/u/1012958/iTunes%20Library.xml) and I'd like to import it to Mathematica to do some statistics. I get an XMLObject like this:

XMLObject[ "Document"][{XMLObject["Declaration"]["Version" -> "1.0", "Encoding" -> "UTF-8"], XMLObject["Doctype"]["plist", "Public" -> "-//Apple Computer//DTD PLIST 1.0//EN", "System" -> "http://www.apple.com/DTDs/PropertyList-1.0.dtd"]}, XMLElement[ "plist", {"version" -> "1.0"}, {XMLElement[ "dict", {}, {………}], {}, "Valid" -> True] 

How can i convert it to a Mathematica 10 Dataset or a matrix?

Import iTunes xml data and convert it into a dataset or table

I have an xml file with song data from iTunes (https://dl.dropboxusercontent.com/u/1012958/iTunes%20Library.xml) and I'd like to import it to Mathematica to do some statistics. I get an XMLObject like this:

XMLObject[ "Document"][{XMLObject["Declaration"]["Version" -> "1.0", "Encoding" -> "UTF-8"], XMLObject["Doctype"]["plist", "Public" -> "-//Apple Computer//DTD PLIST 1.0//EN", "System" -> "http://www.apple.com/DTDs/PropertyList-1.0.dtd"]}, XMLElement[ "plist", {"version" -> "1.0"}, {XMLElement[ "dict", {}, {...}], {}, "Valid" -> True] 

How can I convert it to a Mathematica 10 dataset or table?

Source Link
mlainz
  • 358
  • 1
  • 10

Import iTunes xml into Mathematica 10

I have an xml file with song data from iTunes (https://dl.dropboxusercontent.com/u/1012958/iTunes%20Library.xml) and I'd like to import it to Mathematica to do some statistics. I get an XMLObject like this:

XMLObject[ "Document"][{XMLObject["Declaration"]["Version" -> "1.0", "Encoding" -> "UTF-8"], XMLObject["Doctype"]["plist", "Public" -> "-//Apple Computer//DTD PLIST 1.0//EN", "System" -> "http://www.apple.com/DTDs/PropertyList-1.0.dtd"]}, XMLElement[ "plist", {"version" -> "1.0"}, {XMLElement[ "dict", {}, {………}], {}, "Valid" -> True] 

How can i convert it to a Mathematica 10 Dataset or a matrix?