Hope this clears it up... make the code from your post above part of a function or sub called refreshlistview... then in another sub use something like:
- Code: Select all
Dim objDocCopy As MSXML2.DOMDocument
private sub XMLCompair()
Dim objDoc As MSXML2.DOMDocument
'load the xml document
Set objDoc = New MSXML2.DOMDocument
objDoc.async = False
objDoc.Load "http://localhost/xmloutput.php"
'compair files
if objDoc <> objDocCopy then
objDocCopy = objDoc
refreshlistview()
end if
end sub
you only want to process the xml if it has changed... so you want to load the web page, check if it has changed, and if it has, make a copy of it and then refresh the listview.
autopilot



