Thanks, Scott

    The XML solution sounds good and it might be the best one to incorporate
 into a NAMELIST class so as to hide the complexity of and expose to re-use.
 I want to be able to load values of a list of variables of various types
 from an ordered data set containing various types of data in such a way 
that
 to each variable in the NAMELIST there exists in the corresponding position
 in the data set the beginning of a chunk of data to be stored in that
 variable. The amount of data to be stored is determined by the amount of
 data of a given type from the beginning of that chunk to the end. This is a
 generalized array structure, one of many possible generalizations from the
data structure concept of a contiguous memory segment of data all of the
 same type.
     However, the XML solution must be such as to generate a markup language
 from the variables in the NAMELIST such that each XML tag must describle 
the
 type and possibly the (initial) size of the data to be loaded into the
 variable. There must also be a parser capable of handling the XML tags of
 the resulting XML markup language extension so as to be able to extract 
data
 intended for it from a text file containing the variable name a delimiter
 such as '=' and the value(s) to be loaded into that variable.
    I would appreciate your insight into possible implementations of such a
 class using XML.

 Regards,

    Paule
 ----- Original Message ----- 
> From: "Scott Kellish (@Work)" <[EMAIL PROTECTED]>
> To: "Borland's Delphi Discussion List" <[email protected]>
> Sent: Thursday, March 09, 2006 3:08 PM
> Subject: Re: A Delphi Component that enables namelist-directed I/O
>
>
>> It really depends on what your trying to accomplish. What your described
>> could easily be implemented using XML. Delphi also have built in 
>> streaming
>> system that knows how to write and read data types and objects to and 
>> from
>> files. That is how Delphi forms are serialized and persisted to disk. The
>> streaming system can also be extended to stream in/out custom datatypes.
>> There are some limitations on its use but I've found that for 90% of the
>> time its satisfies my need. There are also free, 3rd party variants of 
>> the
>> streaming system that will stream in and out in XML. Do a search on
>> www.tamaracka.com for streaming and XML.
>>
>> Thanks,
>> Scott
>>
>> __________________________________________
>> SoftSystem Solutions, LLC
>> 18 Ridge Road
>> Clark, New Jersey 07066 USA
>> Scott Kellish, Owner
>> Tel.      +01 732 382 1873
>> Fax:     +01 732 382 1873
>> Mobile: +01 732 261-5856
>> e-mail:  [EMAIL PROTECTED]
>> __________________________________________
>>
>> Solitude, the safeguard of mediocrity. - Ralph Waldo Emerson
>>
>> ----- Original Message ----- 
>> From: "Paule Ecimovic" <[EMAIL PROTECTED]>
>> To: "Borland's Delphi Discussion List" <[email protected]>
>> Sent: Thursday, March 09, 2006 4:56 AM
>> Subject: A Delphi Component that enables namelist-directed I/O
>>
>>
>>> Hi, All
>>>
>>>    After coming across very useful threads in this list on writing to 
>>> and
>>> reading from human-readable text files in structured ways, such as 
>>> writing
>>> the values of a list of variables of various types to a file containing 
>>> a
>>> string representing a given variable's name followed by a delimiter
>>> followed by that variable's value along with the ability to extract the
>>> information back from the corresponding file, I came to wondering 
>>> whether
>>> there is a Delphi component that does this. In the past when I have 
>>> posted
>>> to this list about this I got very useful pointers outside of Delphi,
>>> i.e., a wrapper of a C routine for NAMELIST-like functionality, or the
>>> tried and true yet insufficiently re-useable maxim "For best results,
>>> advice roll-your-own". I am wondering about a plug-and-play standard
>>> Delphi solution to this problem that I can re-use at the drop of a hat,
>>> everywhere.
>>>
>>> Many thanks in advance,
>>>
>>>    Paule
>>> _______________________________________________
>>> Delphi mailing list -> [email protected]
>>> http://www.elists.org/mailman/listinfo/delphi
>>>
>>
>> CONFIDENTIALITY NOTICE: The information in this message is confidential 
>> and
>> may be legally privileged.  It is intended solely for the addressee. 
>> Access
>> to this message by anyone else is unauthorized.  If you are not the 
>> intended
>> recipient, any disclosure, copying, or distribution of this message, or 
>> any
>> action or omission taken by you in reliance on it, is prohibited and may 
>> be
>> unlawful.  Please immediately contact the sender if you have received 
>> this
>> message in error and permanently delete this message and any attachments.
>> Thank you.
>>
>> _______________________________________________
>> Delphi mailing list -> [email protected]
>> http://www.elists.org/mailman/listinfo/delphi
>>
> 


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to