我正在尝试转换格式为
的xml代码Dim result
result = shell.Popup( "Mesage text goes here", , "Window title", vbOKCancel )
If result = vbOK Then
' something here
End If
到html代码
<document>
<section>
Some Text 1
<theorem>
Let $H$ be a real or complex Hilbert space.
</theorem>
Some Text 2
</section>
</document>
这是到目前为止所做的
<div class="section">
<div class="text">
Some Text 1
</div>
<div class="theorem">
Let $H$ be a real or complex Hilbert space.
</div>
<div class="text">
Some Text 2
</div>
</div>
问题是我不确定如何分别提取$xml=simplexml_load_file("text.xml") or die("Error: Cannot create object");
foreach($xml->children() as $tags){
echo'<div class="section">';
echo '<div class="theorem">'.$tags->theorem.'</div>';
echo'</div>';
}
和Some Text 1
,以便我可以回复Some Text 2
标记中的每一个。有谁知道如何解决这个问题?