You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Akim Boyko <ak...@ua.devzerog.com> on 2004/01/10 11:43:28 UTC
[software]Xalan - Example Improve
I'd improve 'XPathWrapper' -- original execute XPath expression, but
find only first string from node set, author even add check to inform
users that there were more that one results(XPathWrapper.cpp:230).
Improvement is simple:
1)create new local steck variable for XObject and replace in member
function item 0 by iterator (XPathWrapper.cpp:248 from
'xObj = xpath->execute(contextNodeList.item(0),' to
'XObjectPtr xObj = xpath->execute(contextNodeList.item(iter),')
2)organise 'for'-circle
improvements change lines XPathWrapper.cpp:248 and add 'for'-cirle
Regards,
Akim Boyko
Dev Zero G Ltd
w: http://devzerog.com
e: akim.b@ua.devzerog.com