Solution:
The messages (revXMLStartTree etc.) need to be handled by the CARD, not the object (In my case, a button) that makes the call to revXMLCreateTreeFromFile.
I hope everyone has a good day. Thanks to anyone who read my post and was trying to figure out what's going on.
-John
***** Original post below *****
Hello All,
I can't figure out what I have wrong here. I have a button that calls ProcessXMLFile with a file name. The command "answers" me with a valid integer, so the call to revXMLCreateTreeFromFile appears to be parsing the XML and building the tree. However, none of the XML Messages seem to be getting sent as none of my breakpoints are being hit.
Any insights into what I'm missing would be greatly appreciated!
Code: Select all
command ProcessXMLFile pFileName
answer revXMLCreateTreeFromFile(pFileName, false, true, true)
end ProcessXMLFile
on revXMLStartTree
breakpoint
end revXMLStartTree
on revStartXMLNode pNodeName, pNodeAttributes
breakpoint
put pNodeName && pNodeAttributes into tTemp
end revStartXMLNode
on revStartXMLData pElementData
breakpoint
put pElementData into tTemp
end revStartXMLData
on revEndXMLNode pNodeName
breakpoint
put pNodeName into tTemp
end revEndXMLNode