OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tools to quote HTML tags?



 From: "zuochang zheng" <zz@agnitas.de>
 
> Hi, there,
> 
>  I need to put a html page into XML file and thus have
> to quote the html tags in the page. Does someone know
> a tool to do the job? Thanks.
 
You don't need any tool!

Just make a CDATA section start

  <![CDATA[
and end
  ]]>
and paste the HTML code in as it is. Then your data
is the HTML data.

So 
<![CDATA[
  <html>...</html>
]]>
is the same as

  &lt;html&gt;...&lt;/html&gt;

Is that what you want? If you want to convert the HTML tags into XML tags,then the best thing to do is to download the TIDY program, which will do most of the work for you.  Or you may have an HTML editor available already which has a "Save As XML" option.

Cheers
Rick Jelliffe