Is there any good solution for me to convert an html of following format
            <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>
into
            <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>
with php? I want to convert a bread crump structure in RDFa to Microdata. Thank you for the help
 
     
    