C# code to fetch all attributes of an element
-
I am working with C# windows application. I have html source, which im converting to html element collection. I am parsing through each element and i want to get all attributes of particular element.
For eg: <input id="login" name="login name" class="login">
I want to dynamically fetch all the attributes of the above element like id, name, class.
Please help me on this.
-
I am working with C# windows application. I have html source, which im converting to html element collection. I am parsing through each element and i want to get all attributes of particular element.
For eg: <input id="login" name="login name" class="login">
I want to dynamically fetch all the attributes of the above element like id, name, class.
Please help me on this.
If I were you, I would investigate using the HTML Agility Pack[^]. You will find it saves you no end of time working with HTML.
-
I am working with C# windows application. I have html source, which im converting to html element collection. I am parsing through each element and i want to get all attributes of particular element.
For eg: <input id="login" name="login name" class="login">
I want to dynamically fetch all the attributes of the above element like id, name, class.
Please help me on this.
A simple token parser is decribed here[^]. There are tons more available on the internet. You can even pay for some third party which will mean there is support provided as well.
Apps - Color Analyzer | Arctic | XKCD | Sound Meter | Speed Dial