Retrieving text from xml message format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Niravjoel
    New Member
    • Mar 2009
    • 1

    Retrieving text from xml message format

    Hi All!
    can anyone help me out in this issue?
    Im developing an application on UPNP, im using SSDP message for discovering the device in a network.
    SSDP message is in XML Format:
    for EX:
    Host:255.255.25 5.239:1900
    Mx:1800s
    NT:SSDP:alive
    NTS:upnp:rootde vice
    -
    -

    As i ve various types of devices in the network i have to extract NTS feild and should match with the ST(search Target) field in the search request to get a device response.
    can anyone help me out to extract NTS field from this SSDP message.
    Thank you all.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    first, your example isn't XML.
    second, what programming language do you want to use for this?

    there are 2 basic ways:
    - treat the XML as text and do a string search
    - treat the XML as such and apply your programming language's XML functions

    Comment

    Working...