XML data into mAirlist.

Hi Torben,

Am trying to ingest XML song data from GSelector into mAirlist, am running v6.1 latest snapshot build.

Any help would be appreciated,

TIA.

Sorry for the late reply, I was away from the office and had to look up a few things first.

GSelector import has become a bit more complicated in mAirList 6.1, as you can (but also must!) specify a mapping of GSelector fields (represented by an XPath expression in the XML) to mAirList attributes.

Artist and Title are extracted automatically.

For other attributes, you must add a “GSelectorImportAttributes” section to mAirList.ini like this:

[GSelectorImportAttributes]
Category=@category
Album=gs_s:Album/@name
Vocals=gs_s:SongCodes/gs_s:Vocal/@name
Genre=gs_s:SongCodes/gs_s:Genre/@name
Tempo=gs_s:SongCodes/gs_s:Tempo/@value
ISRC=gs_sl:Additional/@isrc
Publisher=gs_sl:Additional/@publisher
SomeUserDefinedField=gs_sl:UserDefined/@userDefined1
SomeOtherUserDefinedField=gs_sl:UserDefined/@userDefined2

(Don’t forget to close mAirList before you edit the file)

Information about XPath: https://www.w3schools.com/xml/xml_xpath.asp

If you need help, please post an excerpt from your XML file (one file record) here.

Thank you Torben, much appreciated.