我用phpmyadmin将mysql数据库导出到xml,现在我想用minidom解析它,但是我无法以我需要的形式获取内容。在
摘要:我需要将变量title分配给This is the title中包含的文本
提取的数据库如下所示:
1
This is the title
This is the news text
Thu, 28 Feb 2008 20:10:30 -0500
author
site_announcement
我可以用以下脚本提取文本,但它不是我需要的格式:
^{pr2}$
我需要的是可以将这些元素的文本内容分配给可以传递的变量,例如for item in columns:
title = ???
text = ???
date = ???
author = ???
如果db输出是
Here's the Title的形式,那么我会有很多示例可供参考,但是我找不到任何类似This is the title的引用