Re: Processing HTML files within XML files

Subject: Re: Processing HTML files within XML files
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 07 Mar 2000 21:20:52 -0800
At 00/02/26 10:21 +0000, ural wrote:
I got a problem with XML. I will explain it in this way.
My xml file.
<?xml version="1.0">
<xyz>
<content>
<title>something</title>
<fulltext>all html tags etc</fulltext>
</content>
</xyz>
Here, in this full text node I am putting all my html tags. The problem is if any of the tags are not closed then my
xml file will not be generated properly.

This sounds like it isn't an XSLT question at all ... probably out of scope for this mail list, yet the answer may be useful to readers.


Because of it I cannot continue accessing xml. Is there any way to solve this problem?

You can use HTML Tidy to convert existing HTML into XML:


http://www.w3.org/People/Raggett/tidy/

Tidy will also repair some errors and report errors it cannot repair in your HTML. The output can be configured to be well-formed XML. The output of the program can then be included in an XML document.

will any attribute in dtd will help me out in this.

No.


I hope this helps.

............... Ken

--
G. Ken Holman                    mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.             http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999   (Fax:-0995)
Web site: XSL/XML/DSSSL/SGML services, training, libraries, products.
Practical Transformation Using XSLT and XPath      ISBN 1-894049-04-7
Next instructor-led training:    2000-05-02,2000-05-11/12,2000-05-15,
-                                    2000-06-12,2000-06-13,2001-01-27


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread
  • [no subject]
    • ural - Sat, 26 Feb 2000 10:21:19 +0000
      • G. Ken Holman - Tue, 07 Mar 2000 21:20:52 -0800 <=