comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Another XML Question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Another XML Question [message #43077 is a reply to message #43073] Tue, 22 March 2005 14:40 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Michael Wallace writes:

> So, if I understand your question, you want to walk the node tree
> without prior knowledge of what nodes you may encounter on your journey.
> The only way I know to do this is with good ol' recursion. I could
> explain the recursion, but an example is much better than an explanation
> in this case. In the vague IDL documentation there's a pretty good
> example of tree-walking. So, I guess the question is, what about this
> doesn't do what you want it to?

I think my problem is that my tree has a hell of a lot
of "children" that aren't what I expect them to be. They
seem to be text nodes with end-of-line strings or some
damn thing in them. I don't know where the hell they
come from. :-(

Once I realized this, and threw these objects out,
I had no difficulty traversing the tree and building
a set of structures and corresponding widgets to change
the values. Now I'm trying to figure out how to put
the values back in the XML file without having to completely
re-write the file.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: LINUX Device Question
Next Topic: Re: LINUX Device Question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Dec 04 00:01:43 PST 2025

Total time taken to generate the page: 0.03894 seconds