有了DFA图,我怎样才能将它转换为图灵机?我是否必须找到DFA接受的语言然后创建图灵机?或者有直接的方法吗?
谢谢.
我有这个 XML:
<Products xmlns="urn:shop.fruit">
<!-- documento XML para a pergunta 5 -->
<Stock>
<product name="banana" quant="2000" un="kg"/>
<product name="aple" quant="3000" un="kg"/>
<product name="orange" quant="3500" un="kg"/>
<product name="melon" quant="1000" un="kg"/>
</Stock>
<Prices>
<product name="aple" un="€">1.2</produto>
<product name="melon" un="€">1.5</produto>
</Prices>
</Products >
Run Code Online (Sandbox Code Playgroud)
我想要 XPath 为我提供库存标签中所有产品的名称,但价格标签内的产品除外。我想要的结果是: name="banana"; 名称=“橙色”。我已经尝试过这个 XPath:/Produtos/Stock/produto/@nome except /Produtos/Preços/produto/@nome
但似乎不接受 except 运算符。有什么建议?