Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.0.0 - Русский


htmlDump

Dump a HTML document

Syntax

str = htmlDump(xmlDoc [, indent])

Arguments

xmlDoc

xmlDoc, a XML document

indent

indent, a boolean

str

str, a matrix of strings

Description

Dump a HTML document. If indent is false (by default it is true), no indentation and carriage return will be added.

Examples

doc = htmlReadStr(["<!DOCTYPE html PUBLIC ""-//W3C//DTD HTML 4.01//EN""";
                   """http://www.w3.org/TR/html4/strict.dtd"">";
                   "<html lang=""en"">";
                   "  <head>";
                   "    <meta http-equiv=""content-type"" content=""text/html; charset=utf-8"">";
                   "    <title>title</title>";
                   "    <link rel=""stylesheet"" type=""text/css"" href=""style.css"">";
                   "    <script type=""text/javascript"" src=""script.js""></script>";
                   "  </head>";
                   "  <body>";
                   "  </body>";
                   "</html>"]);

// Dump a HTML document
htmlDump(doc)

// Dump a HTML document without indentation
htmlDump(doc, %f)

// Free the resources associated with the document
xmlDelete(doc);

See also

History

ВерсияОписание
5.5.0 HTML features added.
Report an issue
<< XML Management XML Management htmlRead >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Mar 07 09:28:48 CET 2023