Read ini file with multiple threads

I have a state machine architecture, but I have multiple threads. For instance, one is dealing with listening for mulitple tcp connections and storing their refnums to an array in a functional global. Another thread is accessing these refnums and collecting data it's receiving from each tcp connection. This data is queued up and then dequeued in a third thread which does some modification and sends it out via serial. My question is, when you have a situation like this and have to read an ini file, where should you read it? It seems like the most logical place would be outside your loops so you can get all the tcp and serial info (port, baud rate, etc) then wire it it to your create listener or initialize serial connection despite them being in different threads. But then again, normal state machine architecture would want an "initialize" case. If you did this though which loop would you put the init case in? And you would then have to worry about synchronizing loops becuase you wouldn't want one to try and create a listener while another thread was still reading ini data which would include the port to listen on. Maybe I'm overthinking this haha. Suggestions? Edit: one more question. Does it seem overkill that I have a tcp loop listening for data and queuing it up and a separate loop sending out the processed data via serial? Or should I just have one state that gets tcp data stores it in a shift register, then another state that sends it out via serial, and returns the state machine to the tcp read state?
Message Edited by for(imstuck) on 03-03-2010 01:13 PM
Message Edited by for(imstuck) on 03-03-2010 01:17 PM
CLA, LabVIEW Versions 2010-2013

Most of the applications I work on at the moment are used for testing barcode and label printers. The test applications I design are focused on testing the printer's firmware, not the hardware. Within our applications we have three primary objects (Unfortunately they are not native LabVIEW objects yet. They were developed before native LVOOP.) The primary objects we use in our applications are a log object, a connection object (communication interface to the printer) and a printer object. In any single instance of a test we only have a single printer, a single connection to the printer and one or more discrete logs. Each instance of these objects represent a single, real physical entity. A singleton object is a virtual representation of the physical world. Let's take the log object since that is the most simple of the objects described above. Naturally for a given log file you have the log file name and path. We also provide other attributes such as the maximum size of a single file (we allow log files to span multiple files), whether it is a comma delimited file or if it contains raw data, if timestamps should be included with a log entry and so forth. Most of these attributes are static for a log file with the exception of the name and such things as whether the logging is actually enabled or disabled. If we split a wire and had multiple instances of the log file (the way native LVOOP actually works) the attribute for whether logging is currently enabled or disabled will only pertain to the specific instance, or specific wire for the that object. Since this truly represents a single item, one log file, we need that attribute to be shared for all references to the instance of the log object. Since we allow this we can set an attribute on the log object in any task and it will be reflected in any other task that is using it. Think of the way a action engine or functional global works. However, in this case we provide discrete methods for the various actions.
I hope that made some sense. If not let me know since I just whipped up this response.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • Reading a file with multiple threads?

    I have a file that contains some data. In my application, I currently have three worker threads that perform the same long-executing task using three different data sets. They each need to read some data from the same file. Is this a problem as long as they are only reading it? I know it would be if they modified it but I didn't think it was a problem if they were only reading it.
    Edit: It is an XML file and I am using the XML Decoder to read it.
    Edited by: Sch104 on Jul 2, 2008 9:08 AM

    If the file is on a diskdrive, it's likely that your program will be i/o bound and threads won't help.
    Edited by: ChuckBing on Jul 2, 2008 11:32 AM

  • Reading INI files with dashes in the section name

    I am trying to read an INI file from a web site. Within that INI file are sections that have dashes in them. I need to be able to read several sections so I can locate specific files to download referenced within the INI files. I found a script for parsing
    INI files, but when I run it, the script fails to handle the sections that have dashes. Any ideas on how I can work around the issue?
    $Web = New-Object System.Net.WebClient
    Function Get-INIContent ($ContentList){
    $INI = @()
    Switch -regex ($contentList)
    "^\[(.+)\]"
    [string]$Section = $Matches[1]
    $INI[$Section] = @{}
    $CommentCount = 0
    $ContentList = $Web.Downloadstring("http://download.nai.com/PRODUCTS/COMMONUPDATER/avvdat.ini")
    Get-INIContent $contentlist
    What I was hoping to do was search through the INI until I found the sections I want, and then read the fields for that section so I know what to download.  I won't be pulling all of the files, so I need to find a way to search for the sections I am
    looking for then read all of the lines for that section and process them.

    Found part of the problem... When I pull the file into a variable I lose the ability to search it line by line.  For example:
    $Web = New-Object System.Net.WebClient
    $ContentList = $Web.Downloadstring("http://download.nai.com/PRODUCTS/COMMONUPDATER/avvdat.ini")
    #For some reason this returns the entire file
    $contentlist | select -first 1
    $contentlist | %{
    #Thought this would be one line, but it is also
    #the entire file...
    $_
    I have since shifted to a different method of reading the ini and I can process row by row...
    $Web = New-Object System.Net.WebClient
    $INILocation = "c:\SomeLocation\avvdat.ini"
    $Web.DownloadFile("http://download.nai.com/PRODUCTS/COMMONUPDATER/avvdat.ini",$INILocation)
    $INIFile = [System.IO.File]::OpenText($INILocation)
    Do {
    $CurrentLine = $INIFile.ReadLine()
    #This is now one line like it should be.
    $CurrentLine
    While ($INIFile.EndOfStream -ne $True)

  • Reading text file with multiple variables

    When I open a text document containing 1 string of a Base64 Encoded Image, it works fine:
    import flash.display.Loader;
    import flash.utils.ByteArray;
    import formatter.Base64;
    var imgB64Str:String="";
    var ld:Loader=new Loader();
    var my_req:URLRequest = new URLRequest("horses.img");
    var my_loader:URLLoader = new URLLoader();
    my_loader.addEventListener(Event.COMPLETE, loadText);
    my_loader.load(my_req);
    function loadText(e:Event):void{
        // set string variable to loaded text
        imgB64Str = my_loader.data;
        // position, decode & display
        ld.x = ld.y = 50;
        ld.loadBytes(Base64.Decode(imgB64Str));
        addChild(ld);
    The image displays and that's great, but I need to display multiple images; therefore, I used the standard format: var1=value1&var2=value2&...
    (In reality, the values are the huge base64 strings.)
    Then I just needed to add "my_loader.dataFormat = URLLoaderDataFormat.VARIABLES;" since the format of my source changed.
    The thing that bugs me is that I'm tracing the imgB64Str after I set it and it traces fine (just like the other version). And from then on I'm not doing anything different!
    See my comments for things I did different...
    import flash.display.Loader;
    import flash.utils.ByteArray;
    import formatter.Base64;
    var imgB64Str:String="";
    var ld:Loader=new Loader();
    var my_req:URLRequest = new URLRequest("images.img"); // CHANGED: source file, due to new format
    var my_loader:URLLoader = new URLLoader();
    my_loader.dataFormat = URLLoaderDataFormat.VARIABLES; // CHANGED: formatting input from text to variables
    my_loader.addEventListener(Event.COMPLETE, loadText);
    my_loader.load(my_req);
    function loadText(e:Event):void{
        imgB64Str = my_loader.data.image1; // CHANGED: instead of grabbing whole data, grabbing the image1 variable
        trace(imgB64Str); // CHANGED: traces fine!
        // same as other from here down!
        ld.x = ld.y = 50;
        ld.loadBytes(Base64.Decode(imgB64Str));
        addChild(ld);
    It runs with no errors, but the image no longer displays.
    What's the deal?!? :/
    Any help is greatly appreciated.

    See this site: AN EASY REFERENCE FOR OLE AUTOMATION by Serder Simsekler.
    Best!
    Jim

  • Reading image stream with multiple threads

    Hello folks
    I thought about a model for an app I need to code and I need your opinion.
    My task is to implement an application that does the following:
    - Read and decode images from a stream.
    - Do some image processing
    - Display the resulting images in Swing window.
    Since decoding is expensive and i might want to use a multiprocessor machine,
    I decided to put the image reading and decoding in a different thread. from the
    image processing (and maybe painting).
    In the end, I thought about using 2 objects and 3 threads:
    - one object that keeps the Swing window data and the image processing logic
    - one object that keeps the stream connection data and the decompression logic
    for the (jpeg) images
    -one thread that waits for incoming events and decodes them. After decompressing
    one image, it sends an event to all objects that needs the image data, in this case
    this is the object that keeps the image processing logic. Therefore it updates an
    image reference in the image processing logics object. The image object only
    allow synchronized access by all threads.
    -another thread whose logic is inside the image processing logic object takes
    the current data from the image reference the first thread writes to via events
    and does image processing. The result is written to another image reference within
    the same object. After that, it sleeps for 10 ms or so.
    -a third thread is triggered via invokeLater by the image processing thread after
    it produced a result. It calls the repaint() method of the Swing control which draws
    the result-image to the screen.
    Do you see any mistakes or do you have better suggestions to do it?
    Please let me know!
    Thanks in advance!

    If the file is on a diskdrive, it's likely that your program will be i/o bound and threads won't help.
    Edited by: ChuckBing on Jul 2, 2008 11:32 AM

  • File2Idoc: File with Multiple Occurence

    Hi,
    In  File2 Idoc scenario: how to read a file with multiple structure/occurrence. I tried as per below links, it is picking only first structure i.e - (Data0).
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    http://wiki.sdn.sap.com/wiki/display/XI/FiletoMultipleIDOCSplittingwithoutBPM
    My Input file as like :-
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_SENDER xmlns:ns0="http://FileToIdoc">
    - <DATA0>
      <DOC_NUM>0017000374</DOC_NUM>
      <POSITION_NUM>10</POSITION_NUM>
      <DELVRY_ITEM>000000000000000014</DELVRY_ITEM>
      <PLANT>1010</PLANT>
      <QUANTITY>3</QUANTITY>
      <DATE>2010.08.24</DATE>
      <SERIAL>AAAA01E1123458</SERIAL>
      </DATA0>
    - <DATA1>
      <DOC_NUM>0017000374</DOC_NUM>
      <POSITION_NUM>10</POSITION_NUM>
      <DELVRY_ITEM>000000000000000014</DELVRY_ITEM>
      <PLANT>1010</PLANT>
      <QUANTITY>3</QUANTITY>
      <DATE>2010.08.24</DATE>
      <SERIAL>AAAA01G1123456</SERIAL>
      </DATA1>
    - <DATA2>
      <DOC_NUM>0017000374</DOC_NUM>
      <POSITION_NUM>10</POSITION_NUM>
      <DELVRY_ITEM>000000000000000014</DELVRY_ITEM>
      <PLANT>1010</PLANT>
      <QUANTITY>3</QUANTITY>
      <DATE>2010.08.24</DATE>
      <SERIAL>AAAA01G1123457</SERIAL>
      </DATA2>
      </ns0:MT_SENDER>
    Please suggest concept.
    Thanks.

    Hi,
    The structure what you have created wrong, create this structure and change occurrence of DATA to 1 to unbounded.if you want to read multiple records (same structure) then it is not required to create same structure multiple times.
    *<DATA>+ 1 to unbounded.*
    >   +<DOC_NUM>0017000374</DOC_NUM>+

    >   +<POSITION_NUM>10</POSITION_NUM>+

    >   +<DELVRY_ITEM>000000000000000014</DELVRY_ITEM>+

    >   +<PLANT>1010</PLANT>+

    >   +<QUANTITY>3</QUANTITY>+

    >   +<DATE>2010.08.24</DATE>+

    >   +<SERIAL>AAAA01E1123458</SERIAL>+

    >   +</DATA>
    Regards,
    Raj

  • Loading xml file with multiple rows

    I am loading data from xml files using xsl for transformation. I have created xsl's and loaded some of the data. In an xml file with multiple row, it's only loading one (the first) row. Any idea how I can get it to read and load all the records in the file???

    Could some please help me with the above. I desparately need to move forward.

  • Creating IPA file with Multiple SWF files using ADT

    Iam successfully able to create ipa files using the ADT package but my next requirement is to create an IPA file with multiple swf files.I think it might be easy if your SWF files are regular the tough part is my swf file has lot of action script in it so the only option is to through the command prompt and using the ADT package of Adobe AIR.So now i have 10 SWF files like this and iam creating ipa file for each swf seperatly but now I want to put all of the swf files into one ipa file.Please let me know if i was not clear in my description

    I think you are trying to explain how to load two swf's one with action
    script and loading an other swf file which should be non action script.If
    you read my requirement carefully.I have all the same type of swf's and
    these swf are automatically created as a form of output for xcelsius dash
    board software.Iam capable of creating individialu ipa files from these swf
    files.So when I try to combine the same kind of swf files the first error
    its giving is the file name which I have used in the xml.in the main file
    name for the swf file its not considering the two swf file name in the
    initial window.so the adt package in the command line is not understanding
    the file name from the xml and the command prompt and giving error this swf
    file does not exist.So please consider how to combine two swf files with AS3
    into one ipa file.These swf files are not editable,Let me know if you find
    any idea to achieve this

  • Is there a way to sort a PDF file with multiple pages by a specific field within the PDF? All pages have the same invoice format and i would like to sort by a field within and then print the documents. (Vendor, PO

    Is there a way to sort a PDF file with multiple pages by a specific field within the PDF? All pages have the same invoice format and i would like to sort by a field within and then print the documents. (Vendor, PO#, Date, ect.)

    When you say field, do you mean specifically a form field, such as a text field? Or is the information regular text on the page?

  • How do you disable "Run with Multiple Threads" in a standalone EXE

    I have a program written in Labview 6.1.  After moving to a different hardware platform, my program has started crashing at the same point every time it is run.  I eventually found out that the cause of the crash is the fact that the new hardware has a dual core processor.  I confirmed this by disabling "Run with multiple threads" and now the program works fine.  What I need to know now is how to disable the same setting in a built EXE file, since as far as I know the "Run with multple threads" setting only affects execution in the Labview Dev environment.
    Thanks for any help,
    Dave

    Greg McKaskle once posted that using a non-reentrant (VI is NOT re-entrant) wrapper VI to make the calls to the dll will prevent simultaneous execution of the dll.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Is QuickTime support Mp4 file with Multiple SPS(Sequence Paramter Set) ?

    Hello EveryOne.
    I am in much trouble... plz help me. Thanks
    I have a Mp4 file with Multiple SPS(Sequence Parameter Set) and PPS(Picture Parameter Set.
    When i play into latest QuickTime then only Audio come. Blank White screen come in case of Video..Means no Video..
    i want to ask :
    Is QuickTime support Multiple SPS Mp4 file ?
    Thanks
    Shakti Kapoor
      Windows 2000  

    You didn't answer probably the most important question: whether you're using hardware or software Mercury Playback Engine (MPE). However, since you've set Maximum Render Quality on, it's largely irrelevant.
    When you're using hardware MPE or have the MRQ flag set for your export, rendering is performed with linear color. Linear color processing affects how color channels and alpha channels are composited--anything less than 100% opacity is subject to linear color processing. Check out this article for more information on linear color/linear light: Linear Light - Artbeats
    Since it sounds like you're seeing the results you expect in the Program Monitor, but not export, I'll wager you're not using hardware MPE. Only by disabling the Maximum Render Quality flag on export will you be able to get results that match what you see in the Program Monitor (within reason, of course). The only way you could see the effects of linear color within Premiere would be to either use a qualified GPU that enables hardware MPE, or go into your Sequence Settings and check the "Maximum Render Quality" option and then render previews.
    Please let me know if that helps resolve the issue, or at least provide a little insight into the problem.

  • Labview Read INI File Slow

    Dear ALL:
          I have a VI use OpenG Read INI Cluster subvi to read a complex cluster data structure called step config data,and when I Run this VI,It sometimes read INI File quickly,and sometimes read INI File very slowly.If I want to speed up the read INI File speed,I must quit labview and restart it,and when I quit labview it will reports error just look like Labview Error Message.JPG
    Attachments:
    Labview Error Message.JPG ‏18 KB
    Data Structure.JPG ‏92 KB
    Get Data VI.JPG ‏189 KB

    I've got the same problem - it takes from 4 to 20 SECONDS to write and read 2 ini file clusters.
    The first cluster I write have a few text strings, an error cluster and some numbers.
    The second is an array of clusters (I loop through the array and writes each cluster separately.) containing some text and numbers, most of it contained in sub-clusters.
    With 0 or 1 element in the array it takes around 4 secs to write and read this to ini file. With 20 in the cluster this takes 20 seconds (on a cFP-2120).
    The openG functionality here is quite nice, but if I can't fix this time problem I'm afraid its quite useless!
    Attachments:
    WriteINIFile.jpg ‏211 KB
    IniCluster.jpg ‏114 KB

  • Reading 'ini files'

    I need to write code that reads 'ini files', I would like to know If anyone has a sample or can guide me how to approach this task.
    Thank you

    If you have an ini file with values like :Thank you for your prompt reply. You got me intrigue, By any chance do you know where can I get more information about property files?
    Thank you for your help.
    value1=test
    value2=another test
    You can read the values by doing :
    Properties props = new Properties();
    FileInputStream fis = new
    FileInputStream("D:\\test.ini");
    props.load(fis);
    fis.close();
    String value1 = props.getProperty("value1");
    // etc .........................Note : Unless there is some specific reason you should
    use a properties file and not an ini file.

  • Downloading .xls file with multiple rows and Columns

    Hi ALL,
    I need to genarate .xls file with multiple rows and and Columns and sent as an email.Since our customer having Problem with .CSV files need to genarate .XLS file.
    Please do the needful.
    Thanks
    Madhu

    Hi Madhu,
    You might also consider using Excel Spreadsheet XML as the target structure (namespace is urn:schemas-microsoft-com:office:spreadsheet).  When you double-click the resulting xml on a PC it automatically opens with Excel. So, users don't see a difference.  It will open up a lot of options with formatting including creating multiple worksheets if you wanted to.  Best of all you can stick with XML.
    See my response in this thread:
    Re: Convert XML data into XLS 
    Thanks,
    -Russ

  • Read XML file with LINQ

    hello all,
    I've this XML file:
    <?xml version="1.0" standalone="yes"?>
    <Configurations>
    <PageConfigurations softwareCode="63720415" softwareVersion="07" />
    <Page pageName="PAGE1">
    <description>DESC1</description>
    <Param>
    <name>TaskMulti_guc</name>
    <address>1128203</address>
    <nameType>C</nameType>
    <size>1</size>
    <offset>0</offset>
    <format>Hexadecimal</format>
    <description>description</description>
    <adminReadonly>false</adminReadonly>
    <userReadonly>true</userReadonly>
    <byteNumber>4</byteNumber>
    <gainK1>1</gainK1>
    <gainK2>1</gainK2>
    <offsetScale>0</offsetScale>
    <switchName />
    <switchAddress />
    <switchType />
    <switchSize>1</switchSize>
    <switchOffset>0</switchOffset>
    <switchByteNumber>4</switchByteNumber>
    <switchValue>0</switchValue>
    <switchTime>Before</switchTime>
    <switchReset>false</switchReset>
    <debugName />
    <debugAddress />
    <debugType />
    <debugSize>1</debugSize>
    <debugOffset>0</debugOffset>
    </Param>
    <Param>
    <name>TempNum_guh</name>
    <address>1124743</address>
    <nameType>H</nameType>
    <size>1</size>
    <offset>0</offset>
    <format>Hexadecimal</format>
    <description>description</description>
    <adminReadonly>false</adminReadonly>
    <userReadonly>true</userReadonly>
    <byteNumber>4</byteNumber>
    <gainK1>1</gainK1>
    <gainK2>1</gainK2>
    <offsetScale>0</offsetScale>
    <switchName />
    <switchAddress />
    <switchType />
    <switchSize>1</switchSize>
    <switchOffset>0</switchOffset>
    <switchByteNumber>4</switchByteNumber>
    <switchValue>0</switchValue>
    <switchTime>Before</switchTime>
    <switchReset>false</switchReset>
    <debugName />
    <debugAddress />
    <debugType />
    <debugSize>1</debugSize>
    <debugOffset>0</debugOffset>
    </Param>
    <Param>
    <name>vMylifeSignal_guc</name>
    <address>1131388</address>
    <nameType>C</nameType>
    <size>1</size>
    <offset>0</offset>
    <format>Hexadecimal</format>
    <description>description</description>
    <adminReadonly>false</adminReadonly>
    <userReadonly>true</userReadonly>
    <byteNumber>4</byteNumber>
    <gainK1>1</gainK1>
    <gainK2>1</gainK2>
    <offsetScale>0</offsetScale>
    <switchName />
    <switchAddress />
    <switchType />
    <switchSize>1</switchSize>
    <switchOffset>0</switchOffset>
    <switchByteNumber>4</switchByteNumber>
    <switchValue>0</switchValue>
    <switchTime>Before</switchTime>
    <switchReset>false</switchReset>
    <debugName />
    <debugAddress />
    <debugType />
    <debugSize>1</debugSize>
    <debugOffset>0</debugOffset>
    </Param>
    </Page>
    <Page pageName="PAGE2">
    <description>DESC2</description>
    <Param>
    <name>TaskMulti_guc</name>
    <address>1128203</address>
    <nameType>C</nameType>
    <size>1</size>
    <offset>0</offset>
    <format>Hexadecimal</format>
    <description>description</description>
    <adminReadonly>false</adminReadonly>
    <userReadonly>true</userReadonly>
    <byteNumber>4</byteNumber>
    <gainK1>1</gainK1>
    <gainK2>1</gainK2>
    <offsetScale>0</offsetScale>
    <switchName />
    <switchAddress />
    <switchType />
    <switchSize>1</switchSize>
    <switchOffset>0</switchOffset>
    <switchByteNumber>4</switchByteNumber>
    <switchValue>0</switchValue>
    <switchTime>Before</switchTime>
    <switchReset>false</switchReset>
    <debugName />
    <debugAddress />
    <debugType />
    <debugSize>1</debugSize>
    <debugOffset>0</debugOffset>
    </Param>
    <Param>
    <name>TaskMulti_guc</name>
    <address>1128203</address>
    <nameType>C</nameType>
    <size>1</size>
    <offset>0</offset>
    <format>Hexadecimal</format>
    <description>description</description>
    <adminReadonly>false</adminReadonly>
    <userReadonly>true</userReadonly>
    <byteNumber>4</byteNumber>
    <gainK1>1</gainK1>
    <gainK2>1</gainK2>
    <offsetScale>0</offsetScale>
    <switchName />
    <switchAddress />
    <switchType />
    <switchSize>1</switchSize>
    <switchOffset>0</switchOffset>
    <switchByteNumber>4</switchByteNumber>
    <switchValue>0</switchValue>
    <switchTime>Before</switchTime>
    <switchReset>false</switchReset>
    <debugName />
    <debugAddress />
    <debugType />
    <debugSize>1</debugSize>
    <debugOffset>0</debugOffset>
    </Param>
    </Page>
    <Page pageName="PAGE3">
    <description>DESC3</description>
    <Param>
    <name>TaskMulti_guc</name>
    <address>1128203</address>
    <nameType>C</nameType>
    <size>1</size>
    <offset>0</offset>
    <format>Hexadecimal</format>
    <description>description</description>
    <adminReadonly>false</adminReadonly>
    <userReadonly>true</userReadonly>
    <byteNumber>4</byteNumber>
    <gainK1>1</gainK1>
    <gainK2>1</gainK2>
    <offsetScale>0</offsetScale>
    <switchName />
    <switchAddress />
    <switchType />
    <switchSize>1</switchSize>
    <switchOffset>0</switchOffset>
    <switchByteNumber>4</switchByteNumber>
    <switchValue>0</switchValue>
    <switchTime>Before</switchTime>
    <switchReset>false</switchReset>
    <debugName />
    <debugAddress />
    <debugType />
    <debugSize>1</debugSize>
    <debugOffset>0</debugOffset>
    </Param>
    </Page>
    </Configurations>
    with this class:
    public class Page
    public string PageName { get; set; }
    public string Description { get; set; }
    public List<Param> List = new List<Param>();
    public class Param
    public string Name { get; set; }
    public string Address { get; set; }
    public string Format { get; set; }
    public string Description { get; set; }
    How can I read this file with LINQ (I'm no expert) for fill correctly my object ?
    Thanks in advance.
    Stefano

    Please refer to the following sample code:
    XDocument doc = XDocument.Load("c:\data1.xml");
    List<Page> pages = new List<Page>();
    var pageElems = doc.Root.Elements("Page");
    foreach (var page in pageElems)
    Page pageObj = new Page();
    pageObj.PageName = page.Attribute("pageName").Value;
    pageObj.Description = page.Element("description").Value;
    pageObj.List = new List<Param>();
    var paramElems = page.Elements("Param");
    foreach(var paramElem in paramElems)
    Param paramObj = new Param();
    paramObj.Address = paramElem.Element("address").Value;
    paramObj.Description = paramElem.Element("description").Value;
    pageObj.List.Add(paramObj);
    pages.Add(pageObj);
    The code adds the Page objects to the pages list.
    Please remember to close your threads by marking all helpful posts as answer and then start a new thread if you have a new question.

Maybe you are looking for

  • Job getting cancelled in SM37

    Dear All, I have scheduled a job to run using "JOB_OPEN" " JOB-CLOSE" and submit statements. When i checked the status of the job in job-log, its in cancelled status, with an error "Internal session terminated with a runtime error (refer to ST22)". T

  • Filter problem

    Hi, I hava a table with on the selection facet a af:SelectOneChoice to apply filters. This is working fine, but when there are now rows in the table then af:SelectOneChoice is not rendered. How Can I set that it must always be rendered? I first thoug

  • Sent Messages not appearing in Mail

    For the past several days many of my older Sent messages from my Gmail account have not been appearing in the Sent folder in Mail.  The most recent messages from sent from Mail appear, but messages sent from other devices that used to appear in the S

  • Using Mac OS 10.6 Server as Desktop

    Are there any advantages? disadvantages? I want MySQL and I want it the +Apple way.+

  • Target Group creation & Segmentation

    Hi Friends, Can you tell me the use of the toggle buttons OR/AND WITHIN AN ATTRIBUTE / OR/AND ACROSS ALL ATTRIBUTES below the Attribute Lists in the Segment Builder. I my Project there is a requirement where the Client wants to use OR & AND CONDITION