[SOLVED] revXMLCreateTreeFromFile not sending messages (I don't think)

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jsims
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 25
Joined: Thu Apr 30, 2009 1:45 pm
Location: Atlanta, GA
Contact:

[SOLVED] revXMLCreateTreeFromFile not sending messages (I don't think)

Post by jsims » Mon Jun 13, 2022 4:55 pm

Sorry if I wasted anyone's time. I found the issue. I'll edit my post so the next person that doesn't read the Dictionary well enough will see what they've done wrong.

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
- John

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”