XML file in the form of .config file how to convert it to class and store it in single object

Hi,
I have a config file in which i have to convert it to class and get an object.
example:
<?xml version="1.0" encoding="utf-8" ?>
<xyz xmlns="">
  <Container name ="Basic">
    <Connectivity user="" server="" protocol="udp"/>
    <Connectivity user="" server="" protocol="udp"/>
  </Container>
  <Container name ="Cp">
    <settings version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.counterpath.com/cps">
      <domain name="audio">
        <section name="headset">
          <setting name="audio_in_agc_enabled " value="1"/>
        </section>
        <section name="incoming">
          <setting name="use_agc" value="1"/>
        </section>
        <section name="vad">
        </section>
      </domain>
      <domain name="system">
        <section name="qos">
          <setting name="audio" value="tos 46"/>
        </section>
        <section name="dtmf">
          <setting name="force_send_in_band" value="0"/>
          <setting name="minimum_rfc2833_play_time" value="40"/>
        </section>
        <section name="network">
          <setting name="dtx_enabled" value="0"/>
        </section>
        <section name="diagnostics">
          <setting name="enable_logging" value="1"/>
          <setting name="log_level" value="Error"/>
        </section>
        <section name="general">
          <setting name="add_OS_version_to_user_agent_header" value="1"/>
        </section>
        <section name="indialog_notify">
          <setting name="enable_indialognotify" value="1"/>
        </section>
      </domain>
      <domain name="rtp">
        <section name="2833">
          <setting name="enabled" value="1"/>
          <setting name="packet_time_in_ms" value="60"/>
          <setting name="payload_number" value="101"/>
        </section>
        <section name="inactivity">
          <setting name="timer_enabled" value="0"/>
        </section>
      </domain>
      <domain name="proxies">
        <section name="proxy0">
        </section>
        <section name="proxy1">
        </section>
      </domain>
      <domain name="ggg">
        <section name="device">
          <setting name="use_headset" value="1"/>
          <setting name="rrr" value="1"/>
          <setting name="eee" value="480"/>
          <setting name="eme" value="hhh"/>
          <setting name="headset_name" value="vvv"/>
          <setting name="manual_audio_devices_configure" value="0"/>
          <setting name="audio_in_device" value=""/>
          <setting name="audio_out_device" value=""/>
          <setting name="ringer_device" value=""/>
        </section>
        <section name="system">
          <setting name="export_settings" value="EndpointSettings.xml"/>
          <setting name="enable_export_settings" value="0"/>
          <setting name="log_level_AbstractPhone" value="0"/>
          <setting name="log_level_Audio" value="0"/>
          <setting name="log_level_Auto Configuration" value="0"/>
          <setting name="log_level_CCM" value="0"/>
          <setting name="log_level_Conferencing" value="0"/>
          <setting name="log_level_Contacts" value="0"/>
          <setting name="log_level_DNS" value="0"/>
          <setting name="log_level_GUI" value="0"/>
          <setting name="log_level_Jitter" value="0"/>
          <setting name="log_level_Licensing" value="0"/>
          <setting name="log_level_Media" value="0"/>
          <setting name="log_level_Privacy" value="0"/>
          <setting name="log_level_RTP" value="0"/>
          <setting name="log_level_STUN" value="0"/>
          <setting name="log_level_Security" value="0"/>
          <setting name="log_level_Storage" value="0"/>
          <setting name="log_level_Transport" value="0"/>
          <setting name="log_level_USB Devices" value="Info"/>
          <setting name="log_level_Utilities" value="0"/>
          <setting name="log_level_Video" value="0"/>
          <setting name="log_level_Voice Quality" value="0"/>
          <setting name="log_level_XMPP" value="0"/>
          <setting name="log_level_Endpoint" value="6"/>
        </section>
        <section name="beeptone">
          <setting name="play_locally" value="0"/>
          <setting name="enable_beeptone" value="1"/>
          <setting name="beeptone_file" value="beep.wav"/>
          <setting name="beeptone_timeout" value="30000"/>
        </section>
        <section name="dtmf">
          <setting name="play_locally" value="1"/>
          <setting name="pause_start_stop_dtmf" value="100"/>
        </section>
        <section name="control">
          <setting name="auto_answer" value="0"/>
        </section>
        <section name="ctrol">
          <setting name="auto_ans" value="0"/>
        </section>
      </domain>
    </settings>
  </Container>
</xyz>
Please help me out in creating an object from it.
Thanks,
Hiranmayee

It's one of those things you usually start from the other end.
IE with a class and then serialise / deserialize to xml.
Because you have a namespace in there:
<settings version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.counterpath.com/cps">
I think you will find linq to xml will have issues with that.
You could still use xpath to pick data out of there and there's been a thread on the c# forum recently which is relevent:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/2dc0581e-f2fd-4fd3-89ee-e59280c398e6/read-xml?forum=csharpgeneral
Why do you want to turn that into an object?
By the way.
This isn't a wpf question and you should probably have posted it on the c# forum.
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML

Similar Messages

  • Include another property file in the sun-faces-config.xml

    Hi,
    How can I include other property file in the sun-faces-config.xml ? like this
    <component>
    <property>
    <display-name>test</display-name>
    </property>
    <include path="core.xml">
    </component>
    Thanks
    Wilson

    Hi,
    Have a look the below thread
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=52211
    may help you
    MJ

  • How to attach a PDF file TO the form so that recipients can access the file as a resource?

    How to attach a PDF file TO the form so that recipients can access the file as a resource?

    Sorry we do not support this. What you can do though is add a Formatted Text element and add a link to a PDF. To insert a link add some text, select the text and right click on the text (or look under the Insert menu in the top right of the scene)
    Gen

  • I have made .indd file with some form fields in it, now haw to read these fields and manipulate its content through script in indesign

    I have made .indd file with some form fields in it, now haw to read these fields and manipulate its content through script in indesign

    It's probably best to ask in the InDesign Scripting forum:
    InDesign Scripting

  • When I publish my site on one specific page where i've added {tag_pagecontent} I get the error:Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.

    When I publish my site on one specific page where I've added {tag_pagecontent} I get the error:
    'Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.'
    I'm trying to get a blog module going, I've even deleted the html insert bog with the tag in and re-published which then I don't get the error but as a result no blog either. But then I add the tag in again and publish the error comes back. I've used the dev console and it says that my musicians sample.css is out of date but why is it only out of date when I add in html to my muse site?
    HELP!!!! I've searched other threads and to no avail I'm publishing so no direct ftp going on. the only thing I changed in business catalyst was the module stylesheet in order to style the blog. I've tried uploading and replacing all files nothing seems to work. the site is here:
    http://www.musicstudentsforhire.co.uk/musicians-samples.html
    It's only this page as it has the blog on. Also I've noticed when I've re-published occasionally it will show the mobile version on my desktop and not the desktop version??? no idea why that's happening so I've had to turn that off. any explanation on why that is happening would also be much appreciated.

    I haven't received an answer as of yet, I'll post t on here when I do. I de-activated the mobile site because it's my clients site so he needs it to be operational during the day. I hope someone gives me an answer soon.

  • I am suddenly unable to open my pictures in Adobe Photoshop. It gives the following message: The document "Tina-19.jpg" could not be opened. Photoshop cannot open files in the  "Adobe Photoshop JPEG file" format. What does this mean? I have opened my phot

    I am suddenly unable to open my pictures in Adobe Photoshop. It gives the following message: The document “Tina-19.jpg” could not be opened. Photoshop cannot open files in the  “Adobe Photoshop JPEG file” format.
      What does this mean? I have opened my photos in Adobe Photoshop for years and suddenly I get this message and can't open any of my pictures

    JoeLib wrote:
    You type way faster than me Gene.
    Well, not necessarily in this case.
    According to the time stamp, Gene posted his answer a bit over three hours before you did, Joe.
    Gene's post:       Dec 29, 2014 5:54 PM
    Joe's post:          Dec 29, 2014 8:57 PM

  • I deleted all my photos and videos and then delete the deleted files but the photo app is still taking up 12 GB of space and I have no room for new stuff.  How can I clear the memory space used by my deleted videos and photos?

    I deleted all my photos and videos and then delete the deleted files but the photo app is still taking up 12 GB of space and I have no room for new stuff.  How can I clear the memory space used by my deleted videos and photos?  I don't know why the photos are still taking up space and if I will have to reset my phone to get rid of the problem.

    Hey there TowneJ,
    Welcome to Apple Support Communities.
    The article linked below provides troubleshooting tips that’ll likely resolve the issue that you’ve described, where deleted files appear to be taking up space on your iPhone 5.
    If you get a "Not enough free space" alert on your iPhone, iPad, or iPod touch - Apple Support
    So long,
    -Jason

  • Time Machine will not let me restore from backups after June, 2013.  I can see the files on the external hard drive but Time Machine skips all of them and goes back to June, 2013. Does anyone have any idea what the problem is?

    Time Machine will not let me restore from backups after June, 2013.  I can see the files on the external hard drive but Time Machine skips all of them and goes back to June, 2013. Does anyone have any idea what the problem is?

    rtilghman wrote:
    telling me to buy a new router is NOT a solution.
    And why not? Apple is selling these things like BigMacs. They can't make enough of them. You've been suffering since May because you refuse to get a decent router.
    Can you imagine if a company that makes a refrigerator told me that I needed to upgrade my electrical system to rectify a problem with their device? What kind of response IS that?!?!
    What if the problem with their device is that it requires a new-fangled "grounded" outlet and your circa 1890 house doesn't have grounded outlets. Would you refuse to purchase a $ 25 adapter on principle?

  • Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.

    I've been building a site in Muse successfully until today when I get this error message in the browser, publishing to business catalyst as a test bed:
    Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.
    Clearing the cache has no effect and I have checked the assets and there are no error symbols. This happened after trying a google translate code in the <head> and a HTML snippet on the master template, I've since removed it but that the last action I took that I can think may have had an effect.
    Viewing the source of the page in Safari hash;t helped other than it shows ALOT of html (including some elements i can;t relate to in my site design) and states there are three errors:
    [Warning] Invalid CSS property declaration at: ; (index.html, line 1)
    the site is Kingsdown Holiday Homes - Self Catering Chalet Rental at Kingsdown Park, Kent | Home
    I started this site in Muse CC and then recently upgraded to Muse CC 2014, and I had install issues so deleted the original program (this then forced the download of the new version which was not automatically downloading even though CC notified me that an update was required.
    Any information gratefully received.
    Thanks,
    Andrew

    Same problem here but it has nothing to do with a cellular connection.
    Created the site http://www.blackdot.com in Muse 7.4.3 with no issues. Just updated the .muse file today to Muse CC 2014 and reloaded to our web server. Now I am getting the error "Some files on the server may be missing or incorrect." when viewing the site from the latest version of all browsers (Safari, Firefox, Chrome) on a Mac and all browsers on a PC (Safari, Firefox, Chrome, Explorer), also mobile Safari on an iPad.
    My connection is wired broadband, not a mobile or wireless connection. I am not using the Muse "Upload to FTP host…" option and will not be using it. I am simply exporting as HTML and copying the files to my server. I have deleted all files from the web server and recopied the updated site with the same error result. This is the exact same procedure I used to load the initial site with the prior version of Muse.
    It does not seem like there is an existing solution to this problem although many others are experiencing it. It looks like I will need to manually edit each page to remove the error message coding from the html files. Any tips on how to strip out the alert message from the html?
    UPDATE
    For anyone else experiencing this issue, I was able to edit the .html files for my site to remove the code responsible for this alert message. If you wish to edit your .html files you must make the same edit to every .html file in your site export including the top level "index.html" and all .html files inside the "tablet" and "phone" folders if you have them.
    The coding to remove is at the bottom of each .html file:
    (Muse.assets.outOfDate.length||Muse.assets.required.length)&&alert("Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.")
    Make sure you do not remove any semicolons or braces {} when making this edit. Just remove the text shown above. You will obviously need to remake these edits if you export your site as HTML in the future.

  • I have my photos  iPhoto but my iPhoto library is empty. when clicked message reads could not be opened image capture cannot open files in the photo library format. How do I get my photos back into my library?

    I have my photos in  iPhoto but my iPhoto library is empty.When clicked message reads could not be opened image capture cannot open files in the photo library format. How do I get my photos back into my library?

    When what is clicked?
    There are 9 different versions of iPhoto and they run on 9 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • SOAP XML Response in the form of JSP

    Hi,
    I am using a command in Websphere Commerce(WC) as "WebServices Provider " .For new users command is WC specific java program which takes input and throws back the result to the calling program.
    when a client sends a SOAP xml request to WC WebService Command,it sends back the SOAP XML response in the form of JSP to client.The Client is in Microsoft .Net language.
    My Question is:
    1)How the client is interpreting the SOAP XML response in JSP.
    2)Since the client being a .Net provider,to understand this response,he has to make any extra
    configuration ???
    Can somebody in the forum can help me in this regard.
    Thanks
    Mike

    Hi Mike1999 ,
    I am assigned with one project that is based on SOAP,I dont know abc of this technology.How the events are handled by SOAP....Etc Etc....
    Just eloberate What is ment by SOAP.Why it is used.

  • Why often after making updates appears: some files on the server may be missing or incorrect. Clear browser cache and try again.

    Why often after making updates appears: some files on the server may be missing or incorrect. Clear browser cache and try again.

    Hi Gauray
    I can see it well but someone how works at the congress it appears:
    http://www.oeso.org/monaco_conference2015/endorsements.html
    Do you have an updated to clear browser cache automatically in Adobe CC Muse?
    If not, how can I prevent browser cache?
    It is correct if I put in Page Properties for Home Master, in HTML for  ha scritto:
    Why often after making updates appears: some files on the server may be missing or incorrect. Clear browser cache and try again.
    created by Gaurav Sharma in Help with using Adobe Muse CC - View the full discussion
    Hi,
    Could you please provide a URL of the site, so we can check it. Also, take a look to this thread, discussing the same
    Some files on the server may be missing or incorrect
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6767913#6767913
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • When saving certain files get the error "Error saving file..."

    When saving certain files get the error "Error saving file..." Seems to have trouble saving the temp files. tried dumping my workspace and prefs. No change. Other files work fine.

    Try deleting the iPod Photo Cache folder.  For its locations see:
    iTunes: Understanding the iPod Photo Cache folder

  • Does DVD Player have a file like the cd info.cidb file?

    Hi,
    Is there a file like the cd info.cidb file for DVDs? There are apps that use that for CD cataloging. I am wondering if there is an app that will keep track of DVDs as well, using that sort of file, if it exists.
    Many thanks.
    John L

    Well, thanks but that doesn't answer my question. There are plenty of apps that catalog discs. Is there a file like the cd db file? (What is its name and where is it?) Does your app use it?
    Cheers,
    John L

  • How to make the ear file including the 3rd party jar files without menttion in the System Classpath.

    Hai Sir,
    I am facing one problme in weblogic8.1 while depolying the .EAR FILE.
    Please help me sir.
    Case1)     1) I am using the struts and log4j frameworks and 3rd party jar files with
    weblogic8.1.
         2) I make the ejbs,webapplications and 3rdparty jar files, ear file the following
    dir structure .And i mentioned the Class-path including all jar files in the MANIFEST
    OF EAR FILE.
         While deploying the ear file it is giving following error.If log4j.jar does not
    mention in the Weblogic script file
         java.lang.NoClassDefFoundError: org/apache/log4j/Priority
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Class.java:1494)
    at java.lang.Class.getDeclaredFields(Class.java:1073)
    at weblogic.ejb20.deployer.EJBModule.disableImplClassLoader(EJBModule.java:1082)
    at weblogic.ejb20.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.jav
    a:982)
    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:419)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.j
    ava:2792)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.
    java:1478)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:11
    36)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:97
    5)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareCon
    tainer(SlaveDeployer.java:2571)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(Sla
    veDeployer.java:2523)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeploy
    er.java:2453)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer
    .java:820)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:
    536)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java
    :494)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:
    25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    Please provide the soluation without mentioning classpath in the weblogic script
    .How to make the EAR file incliding ejbjar,webapplication and 3rd party jar files.
    Thanks & Regards,
    ASHOK SAMRAT
    [email protected]

    Refer to the section
    Handling Utility classes
    http://dev2dev.bea.com/products/wlserver/articles/musser.jsp
    thanks,
    Deepak
    "Ashok Samrat" <[email protected]> wrote:
    >
    Hai Sir,
    I am facing one problme in weblogic8.1 while depolying the .EAR FILE.
    Please help me sir.
    Case1)     1) I am using the struts and log4j frameworks and 3rd party jar
    files with
    weblogic8.1.
         2) I make the ejbs,webapplications and 3rdparty jar files, ear file
    the following
    dir structure .And i mentioned the Class-path including all jar files
    in the MANIFEST
    OF EAR FILE.
         While deploying the ear file it is giving following error.If log4j.jar
    does not
    mention in the Weblogic script file
         java.lang.NoClassDefFoundError: org/apache/log4j/Priority
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Class.java:1494)
    at java.lang.Class.getDeclaredFields(Class.java:1073)
    at weblogic.ejb20.deployer.EJBModule.disableImplClassLoader(EJBModule.java:1082)
    at weblogic.ejb20.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.jav
    a:982)
    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:419)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.j
    ava:2792)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.
    java:1478)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:11
    36)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:97
    5)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareCon
    tainer(SlaveDeployer.java:2571)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(Sla
    veDeployer.java:2523)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeploy
    er.java:2453)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer
    .java:820)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:
    536)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java
    :494)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:
    25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    Please provide the soluation without mentioning classpath in the weblogic
    script
    How to make the EAR file incliding ejbjar,webapplication and 3rd party
    jar files.
    Thanks & Regards,
    ASHOK SAMRAT
    [email protected]

Maybe you are looking for

  • Compatibility captivate and IPad, help

    I need to know with certainty if adobe captivate is compatible with IPad. I have a problem with Storyline who registers in the librairy the course, the course his accessible even the transfer of the course is ended. It is a big problem for my custome

  • IDisk not accessible

    I am running Lion 10.8.2 and when my external hard drive that I was running time machine on was not recognized by the computer I tried to run the "iDisk Utilities" in my application folder.  I was not able to open the application and it gave me this

  • Aspect ratio issue when watching 16'9 idvd created DVDs on regular players

    I am having problems with the aspect ratio of any DVDs that I burn in iDVD as 16'9 - The original video is 16'9 and edited as such in FCP, then exported with current settings selected and then in iDVD I select a widescreen project - preview of the pr

  • Career ladder in SAP

    Hi Can anyone advise on what is the career ladder in SAP. It starts with working as a consultant. what are the next steps ? Where does it end ? what is the highest end ? Thanx Pankaj

  • Only interested in the organising potential here...

    Not much guidance out there about Albums versus Keywords versus Ratings versus folder structures...what is best, what are the tips and hints? Seems tonnes of help on editing but nothing at all on the experts views about the best way to import a colle