473,396 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Reading html tag Using Xml reader

Hi Everyone, I need to know how to parse the html tag using xmlreader.

This is my input. How to parse this input html file
<html> <body> <p><b><i>Hello</b>World</i></p> </body> </html>
Nov 25 '14 #1
5 4470
If anyone knows the answer kindly tell me
Nov 25 '14 #2
Luuk
1,047 Expert 1GB
Googling found:
http://bytes.com/topic/asp-net/answe...-xmltextreader

which leads to:
http://www.netomatix.com/Products/Do...ParserNet.aspx

Which raises the question: What is so hard that you cannot Google for it yourself? or is information missing on the given links here?

And a bit patience would help too, so your second post (2 hours after the 1st post) is RUDE.
Nov 25 '14 #3
Mr Luuk thanks for ur reply, i too found that link. But i need to parse the Html file using only the xmlreader not by the xmltextreader.

I got the output for the input file

<p><b>Hello<i>World<u>Good</u></i>Morning</b></p>

but i dont know how to parse the html file when the below input comes

<p><b>Hellow<i>World</b><u>Good</i>Morning</u></p>

look at my starting and ending tags.

that is what m problem. If u know plz tell me.
Nov 25 '14 #4
Hi

HtmlAgilityPack and regular expressions can be used to parse HTML very effectively. HTML can be formatted using "classes". You can then parse on the class such as:

XPathValues = "//table[@class='c123']//tr/td";
HtmlDocument doc = doc.DocumentNode.SelectNodes(XPathValues);


http://htmlagilitypack.codeplex.com/
Nov 25 '14 #5
Frinavale
9,735 Expert Mod 8TB
Varatharaju,

Please check out the MSDN documentation for the XMLReader Class. If you scroll down past all of the property, method, and event documentation details there are examples and additional information about how to use the class (just follow the link).

-Frinny
Nov 25 '14 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: nanookfan | last post by:
Hi all, I'm having a bizarre problem converting XML files to HTML using an XSLT. The problem is only occuring in my Netscape 7.0 browser. What makes it more bizarre is that it is only...
0
by: kmunderwood | last post by:
I am having trouble excluding select xml out to HTML using xsl I want to ignore some xml and turn others red I can not find the right way to both: 1. Only show the <tag> that want to, and...
2
by: Allan Bredahl | last post by:
Hi All I'm trying hard to find out how to transform XML to HTML using XSLT files. I have searched all over for some examples on how to do this, but I have had no succes with any of them. ...
7
by: sarada7 | last post by:
Hi, Is there a way to encode/decode HTML using C++?? Thanks, Sarada.
5
by: kewalmehra | last post by:
Hi All, I have a requirement of saving Excel files as HTML using C#. I have managed to write code for saving as HTLM file. however this seems to be not working in the once perticular case . ...
0
by: Kewal | last post by:
Hi All, I have a requirement of saving Excel files as HTML using C#. I have managed to write code for saving as HTLM file. however this seems to be not working in the once perticular case . ...
1
by: antony78 | last post by:
Hi, Could you please tell me how to retrieve the values in the select tag of HTML using JSP. eg: <select name="", id="",> <option value="1">1</option> </select>. I want to retrieve the...
6
by: roop1 | last post by:
Hello gits, I found this snippet that you offered to another person and I was wondering if it wouldn't work for me as well: <script type="text/javascript"> function...
1
by: Izhaki | last post by:
Hi, I'm creating a system where my XML includes HTML tags (<h1></h1>) in addition to other XML elements (<book></book>). I would like to render the HTML tags back to HTML using XSL. Considering...
1
by: Bill Downing | last post by:
I need help finishing a visual basic program that converts SVG to HTML using LINQ. The input in svg.xml should produce the output in target.html Here is my svg.xml code: <?xml version="1.0"...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.