标签: xml xpath dtd
鉴于此DTD:
<!ELEMENT root (t*)> <!ELEMENT t (pay|gift)?> <!ELEMENT pay EMPTY> <!ATTLIST pay amount CDATA #IMPLIED > <!ELEMENT gift (#PCDATA)> <!ATTLIST gift amount CDATA #REQUIRED >
如何通过XPATH查询到达最后一份礼物的金额?
答案 0 :(得分:1)
我会用:
private[spark]