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

Home » Public Forums » archive » read XML with IDL
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: read XML with IDL [message #71746 is a reply to message #71672] Thu, 15 July 2010 10:13 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jul 15, 1:57 pm, Karl <karl.w.schu...@gmail.com> wrote:
> You'd have to be careful here when defining the planet IDL structure.
> If you define it based on the first planet you encounter, you're going
> to have to redefine it later (big problem) or make your "schema
> discovery" code much more robust.
>
> I'm just trying to say that it isn't typical (I think) to write XML
> parsing code without integrating in some solid schema for the data.
> If you want to do it anyway, the XMLDOM class allows you the maximum
> flexibility in "discovering" your data on the fly.

Which is why it would be a lot easier with hashes instead of
structures, as the fields could be edited during the discovery
process. When the whole thing is done, if a structure is really
necessary, the final hash could be relatively easily converted to a
structure (how easily depends on which functions IDL 8 will have to
convert hashes to structures; this case would be a bit trickier due to
recursion).
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to allocate memory for an array of more than 2G
Next Topic: for loop isn't working

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

Current Time: Mon Dec 01 20:35:45 PST 2025

Total time taken to generate the page: 2.23969 seconds