Hi Troy...

> If that doesn't work, post your parsing code.
I took your suggestion and did a makeList() function in the object
inspector, and it worked (thank you).

However, I'd rather not look at the data that way. I'd still just like
to get a simple tree view.  Is this possible?

Thanks, 
Michael M.



OK, here's my code below: A method of a parent called gData:
______________________________________________
on mLoadAndGo(me, whichCast)
  pCurrentCast = whichCast
  pParsed = gXML.parseString(member("theXML", pCurrentCast).text) --
doesn't show up as tree view
  -- does it hold here until done?????????
  if voidP(pParsed) then -- if done parsing and no error
    -- do stuff
  else
    alert("XML not parsed!")
  end if
end
______________________________________________
Also, one other question, does lingo hold on the parseString line until
it's done parsing, or does it automatically continue?



> I must be missing something.  I'm not seeing how to display parsed XML

> as a tree view in the object inspector.  Anyone know?
>
> (In my lingo, the instanced/parsed xtra is named gXML.)

If you are sure that is what contains the parsed data, and not the Xtra 
itself, then you have several ways -

Highlight and drag the variable name to the Object inspector.

Highlight the name, and click the "view in Object Inspector" icon in 
the script window toolbar.

Type the variable name into the left column in the Object Inspector.

It works - I do it all the time.

Try this test - instantiate the XTRA into a variable. Parse the data. 
Use the "makeList" function to move the data into a new variable. Take 
a look at that variable's contents in the Object Inspector. You might 
get different results.




[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to