| Re: Another XML Question [message #43073 is a reply to message #43072] |
Tue, 22 March 2005 16:36   |
Michael Wallace
Messages: 409 Registered: December 2003
|
Senior Member |
|
|
> 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. :-(
Was everything created and running under Windows? I've had end-of-line
problems before when someone creates a text file on Windows and then
ships it over to UNIX to be processed. Due to the end-of-line
differences, all my lines on UNIX systems would end with ^M. Sometimes
this causes a problem, sometimes not. Of course, if memory serves, you
use Windows for just about everything, so it can't be that.
So, when you say there's an "end of line string" or something in there,
what exactly are you talking about? I'm just curious what kind of
gremlin or banshee you're dealing with.
> 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
>
|
|
|
|