我有什么好的解决方案来转换以下格式的html
<span xmlns:v="http://rdf.data-vocabulary.org/#">
<span typeof="v:Breadcrumb">
<a href="http://link1.com/" rel="v:url" property="v:title">Home</a>
</span>
/
<span typeof="v:Breadcrumb">
<a href="http://link2.com/" rel="v:url" property="v:title">Child 2</a>
</span>
/
<span typeof="v:Breadcrumb">
<a href="http://link3.com/" rel="v:url" property="v:title">Child 3</a>
</span>
/
<span typeof="v:Breadcrumb">
<span class="breadcrumb_last" property="v:title">Child 4</span>
</span>
</span>
进入
<span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">
<span typeof="v:Breadcrumb">
<a href="http://link1.com/" itemprop="url">
<span itemprop="title">Home</span>
</a>
</span>
/
<span typeof="v:Breadcrumb">
<a href="http://link2.com/" itemprop="url">
<span itemprop="title">Child 2</span>
</a>
</span>
/
<span typeof="v:Breadcrumb">
<a href="http://link3.com/" itemprop="url">
<span itemprop="title">Child 3</span>
</a>
</span>
/
<span>
<span class="breadcrumb_last">
<span itemprop="title">Child 4</span>
</span>
</span>
</span>
用php?我想将 RDFa 中的面包屑结构转换为微数据。感谢您的帮助