locked
HtmlDocument like XMLDocument ?

    Question

  • Hi

    Does C# winrt contains a class for html like XmlDocument for xml ?

    or any other class "getelementsbytagname" can be used ?

    thanks !

    Monday, February 10, 2014 3:34 PM

Answers

  • What did you find when you searched for other classes in the Object Browser?

    If your HTML is valid XML then you can use XMLDocument. Otherwise you'll need to parse it yourself.

    --Rob

    • Marked as answer by string Astro Tuesday, February 11, 2014 8:58 AM
    Tuesday, February 11, 2014 7:35 AM
    Owner

All replies

  • No, there is no "HTMLDocument", but you may be able to use XMLDocument on your HTML.

    You can use Visual Studio's Object Browser To search for available classes, methods, and properties.

    Monday, February 10, 2014 3:53 PM
    Owner
  • Thanks.. So is there any other class I can get elements by tag name in HTML.. Ive tried with XMLDocuments.. But it's not working properly.. !
    Tuesday, February 11, 2014 7:20 AM
  • What did you find when you searched for other classes in the Object Browser?

    If your HTML is valid XML then you can use XMLDocument. Otherwise you'll need to parse it yourself.

    --Rob

    • Marked as answer by string Astro Tuesday, February 11, 2014 8:58 AM
    Tuesday, February 11, 2014 7:35 AM
    Owner
  • thanks
    Tuesday, February 11, 2014 9:00 AM