locked
how can this be written in c++? RRS feed

  • Question

  • How can we implement the function of the following C# code into a C++ program:

     

    using
     System;
    using System.Xml;

    class Program
    {
    static void Main(string [] args)
    {
    var xml = new XmlDocument();
    xml.Load(args[0]);
    var node = xml.SelectSingleNode("/questions/entry[@serial='a']" );
    Console.WriteLine("a={0}" , node["a" ].InnerText);
    Console.WriteLine("b={0}" , node["b" ].InnerText);
    Console.WriteLine("c={0}" , node["c" ].InnerText);
    Console.WriteLine("d={0}" , node["d" ].InnerText);
    Console.WriteLine("correct={0}" , node["correct" ].InnerText);
    }
    }

     

    The above code is from the above post: http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/26040900-078b-4509-82b5-bb1ccace09c9/


    Still On Progress :)
    Tuesday, December 21, 2010 8:27 PM

Answers

  • Hello,

    This question seems to be more of a C++ programming questions than a HealthVault specific question. Can you please let me know whether you are trying to achieve any specific scenario in HealthVault using the above code? We will be able to help you only on the HealthVault related questions on this forum.

    Thanks and Regards,

    Aneesh D.

    • Marked as answer by Aneesh D Wednesday, January 12, 2011 2:59 AM
    Tuesday, December 21, 2010 8:51 PM

All replies

  • Hello,

    This question seems to be more of a C++ programming questions than a HealthVault specific question. Can you please let me know whether you are trying to achieve any specific scenario in HealthVault using the above code? We will be able to help you only on the HealthVault related questions on this forum.

    Thanks and Regards,

    Aneesh D.

    • Marked as answer by Aneesh D Wednesday, January 12, 2011 2:59 AM
    Tuesday, December 21, 2010 8:51 PM
  • Hello,

    This question seems to be more of a C++ programming questions than a HealthVault specific question. Can you please let me know whether you are trying to achieve any specific scenario in HealthVault using the above code? We will be able to help you only on the HealthVault related questions on this forum.

    Thanks and Regards,

    Aneesh D.


    My apologies,


    Still On Progress :)
    Tuesday, December 21, 2010 9:22 PM