假设我有以下xml:
<avdc:DbDocument Version="14.1.0.4[E14104-11]" CreationTime="2015-06-09T10:44:47" xmlns:avdc="http://www.aveva.com/xml/DbDocument" xmlns:udet="http://www.aveva.com/xml/udet" xmlns:uda="http://www.aveva.com/xml/uda">
<avdc:Project Name="SUR">
<avdc:Mdb Name="ALL">
<avdc:Database Type="9" TypeName="Engineering" Name="TAGSADMIN/DOCSREGI" Number="500" ExtractNumber="1" World="=8692/0" />
</avdc:Mdb>
</avdc:Project>
<udet:ENGDOC TYPE="ENGITE" REF="=16884/3" ACTTYPE=":ENGDOC" OWNER="=16884/2" OWNERREF="=16884/2" NAME="" DESC="" SCSYSF="" uda:ENGDOCNO="2100-0012FM5280-112-0001" uda:ENGDOCREF="" uda:ENGDOCFILE="" uda:ENGDOCAREA="" uda:ENGDOCSUBAREA="" uda:ENGDOCDATEITB="2015-06-03T21:00:00Z" />
<udet:ENGDOC TYPE="ENGITE" REF="=16884/4" ACTTYPE=":ENGDOC" OWNER="=16884/2" OWNERREF="=16884/23" NAME="" DESC="" SCSYSF="" uda:ENGDOCNO="2100-0012FM5280-112-0002" uda:ENGDOCREF="" uda:ENGDOCFILE="" uda:ENGDOCAREA="" uda:ENGDOCSUBAREA="" uda:ENGDOCDATEITB="2015-06-03T21:00:00Z" />
<udet:ENGDOC TYPE="ENGITE" REF="=16884/5" ACTTYPE=":ENGDOC" OWNER="=16884/2" OWNERREF="=16884/23" NAME="" DESC="" SCSYSF="" uda:ENGDOCNO="2100-0012FM5280-112-0002" uda:ENGDOCREF="" uda:ENGDOCFILE="" uda:ENGDOCAREA="" uda:ENGDOCSUBAREA="" uda:ENGDOCDATEITB="2015-06-03T21:00:00Z" />
</avdc:DbDocument>
如何为每个udet提取行号:ENGDOC元素? 说 1 - 首先, 2 - 第二,等等。 我尝试过使用position()函数,但这并没有帮助。
非常感谢!