<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/">
<title>[FP DDL] Fengie Wang Playlist</title>
<trackList>
<track>
<album>Fengie Wang - As Long As You&apos;re Happy (2005)/</album>
<title>01 - Intro.mp3</title>
<location>
https://..../.../....</location>
<duration>45000</duration> </track>
<track>
<album>Fengie Wang - As Long As You&apos;re Happy (2005)/</album>
<title>02 - Deceive.mp3</title>
比如,我想得到<location>
https://..../.../....</location>后面的信息
用正则是很容易搞定的。
如果用python的xml来解析是否方便?
目前设想的方案有3个,
1,用c++的tinyxml库
2,用python的xml模块
3,用c#
对于方案1,西佳佳的学习有点难度,我怕踩坑。
方案2是挺好的,可惜pyyhon编译出的exe,windows xp不兼容
方案3C#,不知道这条路能否走畅?
--
FROM 101.88.141.*