473,396 Members | 1,995 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.

html to xhtml

Hi everyone,

Is there any clean way to convert multiple HTML pages to
XHTML/XML format (pretty print & tag balancing)

I used tidy library but its output is incorrect,

Is there any solution given by .Net api ?
Or using the .net XML library?

I will be grateful to get any kind of idea/ reference.
Thank you very much.
Sharon

Nov 12 '05 #1
4 1358
Sharon . wrote:
Is there any clean way to convert multiple HTML pages to
XHTML/XML format (pretty print & tag balancing)

I used tidy library but its output is incorrect,

Is there any solution given by .Net api ?
Or using the .net XML library?


You can try SgmlReader
http://www.gotdotnet.com/Community/U...4-c3bd760564bc
--
Oleg Tkachenko
XML Insider
http://www.tkachenko.com/blog

Nov 12 '05 #2
Hi oleg, thanks for the quick replay,

I am searching for .Net solution I'm afraid to use an
external library, because of the lack of documentation,
and the dependency in external files.

Sharon.
-----Original Message-----
Sharon . wrote:
Is there any clean way to convert multiple HTML pages to XHTML/XML format (pretty print & tag balancing)

I used tidy library but its output is incorrect,

Is there any solution given by .Net api ?
Or using the .net XML library?
You can try SgmlReader
http://www.gotdotnet.com/Community/U...es/Details.asp

x?SampleGuid=b90fddce-e60d-43f8-a5c4-c3bd760564bc--
Oleg Tkachenko
XML Insider
http://www.tkachenko.com/blog

.

Nov 12 '05 #3
sh*******@hotmail.com wrote:
I am searching for .Net solution I'm afraid to use an
external library, because of the lack of documentation,
and the dependency in external files.


SgmlReader is pure .NET solution. And as a matter of fact its autor is
Chris Lovett - XML architect of Microsoft, so don't be afraid, just give
it a try.
If you look for .NET framework built-in class - there is no such one afaik.
--
Oleg Tkachenko
XML Insider
http://www.tkachenko.com/blog

Nov 12 '05 #4
thank you very much ,
i will give it a go .

Sharon .
-----Original Message-----
sh*******@hotmail.com wrote:
I am searching for .Net solution I'm afraid to use an
external library, because of the lack of documentation,
and the dependency in external files.
SgmlReader is pure .NET solution. And as a matter of fact

its autor isChris Lovett - XML architect of Microsoft, so don't be afraid, just giveit a try.
If you look for .NET framework built-in class - there is no such one afaik.--
Oleg Tkachenko
XML Insider
http://www.tkachenko.com/blog

.

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

87
by: CMAR | last post by:
For xhtml validatin, which is the right metatag to use for English language or can one forget about this tag? <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta...
2
by: mike | last post by:
regards: I follow the following steps to converting from HTML to XHTML http://webpageworkshop.co.uk/main/xhtml_converting My parser is http://htmlparser.sourceforge.net/ Xhtml version is 1.0...
47
by: Chuck | last post by:
Is there any logical reason why one should convert if css is already being used? What possible, immediate, benefit would there be? I am at a loss to see what, pragmatic, difference it would make.
20
by: Alan Silver | last post by:
Hello, I have read about the problems that IE has when using a doctype of HTML 4.01 Transitional. I was advised to use Strict wherever possible. My question is, does the same apply to XHTML...
9
by: anupamjain | last post by:
Hi, After 2 weeks of search/hit-and-trial I finally thought to revert to the group to find solution to my problem.(something I should have done much earlier) This is the deal : On a JSP...
6
by: Rolf Welskes | last post by:
Hello, if I have for example: <table style="width: 100%; height: 100%;" border="1"> <tr> <td style="width: 100px">k </td> <td style="width: 100px">k </td> </tr>
10
by: git | last post by:
All, I have been working on a system to support the 'tidy' program to help convert html to xhtml. The system is a little complex for me to put together as it involves apache/php/linux and a...
14
by: Stanimir Stamenkov | last post by:
I've found some contradiction I want to resolve. <http://www.w3.org/MarkUp/2004/xhtml-faq#mime11states: I've noted "_disallowed_ text/html" and "_must_ be sent with an XML-related media...
6
by: Guy Macon | last post by:
cwdjrxyz wrote: HTML 5 has solved the above probem. See the following web page: HTML 5, one vocabulary, two serializations http://www.w3.org/QA/2008/01/html5-is-html-and-xml.html
11
Dormilich
by: Dormilich | last post by:
Lately I have seen so much awful HTML, that I like to show what a HTML document should look like, regarding the requirements from the W3C. the absolute minimum is defined as: or expressed in...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.