<enviNFe versao="1.10">
<idLote>000000000000094</idLote>
<NFe>
<infNFe Id="NFe35090254517628000198550010000000011870030005" versao="1.10">
<!-- ... content ... -->
</infNFe>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<!-- ... content ... -->
</Signature>
</NFe>
</enviNFe>
我有这个XML文件,如何获取ID属性?这个问题不是关于“如何获取XML中的属性”,我发现了几个解决方案,但不知何故,我无法解决这个特定节点中的这个特定属性。识别XML中的某个节点
我可以进去不到“infNF”那个表的信息,我加载到数据集,并使用此代码:
ds.Tables(Table).Rows(row)(node)
是不是也有类似的方法做什么,我希望得到这个属性?
(您可以用C#或VB.NET来回答)
是的,就是这样,我该如何读取xml来执行此操作?我从来没有使用过xquery – Marcelo
XmlDocument slideDoc = new XmlDocument(nt); slideDoc.Load(“filePath”);我们可以通过下面的例子来说明这个问题:XmlNode titleNode = slideDoc.SelectSingleNode(“// p:sp // p:ph [@type ='title'or @ type ='ctrTitle']”,nsManager); – salgo60
@Paulo Santos tem algum contato pra podermos conversar? ébom ter contatos de desenvolvedores =) – Marcelo