Unanswered how to get id? and info in the scema

  • Monday, January 07, 2013 7:33 AM
     
     

    Hi,

    Can you please advice, I have two questions:

    1. How can I read the id in the XML file? for example the "id" of the "tuple" (please see the bellow XML)?

    2. How can I read the data in the scema? I would like to read the "entity" content in the scema

    Which API do that in MSXML?

    for example I have the bellow xml.

    <?xml version="1.0" encoding="UTF-8"?>
    <presence xmlns:mp=" http://something"
    entity="sip:car54@agency.gov">

    <tuple id="kas892n1">
      <status>
        <basic>open</basic>
      </status>
      ....
      </oma:service-description>

      <dm:deviceID>urn:dn:laptop1</dm:deviceID>
      <!-- timestamp of publish-->
      <timestamp>2010-07-22T20:57:29Z</timestamp>
    </tuple>

      <dm:person id="jk9278h2">
        <mp:person-type>device</mp:person-type>
      </dm:person>

    </presence>

    Thank you very very much for your help

All Replies

  • Tuesday, January 15, 2013 11:11 AM
     
     

    Hi TaliAd,

    you can use the XmlSerializer Class to read the data from the XML. Examples are available on that webpage.

    Regards,

    LittleBlueBird