W3C home > Mailing lists > Public > www-amaya@w3.org > October to December 1999

Re: HTML parser

From: <Irene.Vatton@inrialpes.fr>
Date: Thu, 07 Oct 1999 16:34:09 +0200
Message-Id: <199910071434.QAA03284@tahiti.inrialpes.fr>
To: Hima Vadlamudi <hima@mail.imake.com>
cc: Amaya List <www-amaya@w3.org>
In-reply-to: Your message of Fri, 01 Oct 1999 10:40:27 -0400."
> I am trying to use the HTML parser of Amaya.
> (compiled html2thot.c in STANDALONE mode).
> I've parsed an HTML file into a Document.
> I then try to save the document back to another HTML file using
> TtaExportDocument(Document doc, char* fileName, "HTMLT");
> (The last parameter is either "HTMLT" or "HTMLT.TRA".
> I am sending the mail from my NT boot and my development
> env is in my Linux boot and I need to reboot into Linux
> to know exactly which. Anyway, I got the value by looking at
> the code in HTMLSave.c file)
> The resulting HTML file is nothing like the original HTML file.
> It lost its TITLE  and the BODY.
> What am I doing wrong here?
> Thanks
> Hima

We didn't test the standalone version of the Amaya HTML parser for a while
but there is no reason for not generating the TITLE and the BODY if they
are there in the original document.
An extra-code in Amaya adds these elements if they are not present. Perhaps you
need to add part of that extra-code.
Received on Thursday, 7 October 1999 10:34:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:29 UTC