Re: Muddling Through XML Files [message #43849] |
Fri, 06 May 2005 05:32 |
Thomas Pfaff
Messages: 15 Registered: April 2005
|
Junior Member |
|
|
David Fanning schrieb:
> Hi Folks,
>
> I'm back onto the big XML project. :-(
>
> I'm muddling through, but I have a question. I'm busting through
> a configuration file, reading tags and making widgets as I go.
> All of this works nicely. But eventually I come to a "sensor"
> tag that is significantly different from all the other tags
> in the file, and needs to be processed differently.
>
> What I would like to do, and what I have been led to believe
> other languages allow you to do, is take that whole tag, with
> all of its sub-tags, out of that file and send it somewhere
> else for processing. I can't seem to make out how to do that
> among the millions (alright, *thousands*) of XML objects
> sitting here in front of me. :-(
>
> Any ideas?
>
> Thanks,
>
> David
>
As far as I understand the IDLffXMLDOM* objects, retrieving the
XMLDOMElement (or XMLDOMNode which is the superclass) of the
"sensor"-tag is all you need to do. Passing this you just pass the tag
and all of its sub-tags but nothing more.
Well it involves object-creation and copying of data, but it seems to be
the most straightforward way.
Thomas
|
|
|