Scilab 6.0.1
- Ajuda do Scilab
- XML Management
- htmlDump
- htmlRead
- htmlReadStr
- htmlWrite
- xmlAddNs
- xmlAppend
- xmlAsNumber
- xmlAsText
- xmlDelete
- xmlDocument
- xmlDTD
- xmlDump
- xmlElement
- xmlFormat
- xmlGetNsByHref
- xmlGetNsByPrefix
- xmlGetOpenDocs
- xmlIsValidObject
- xmlName
- xmlNs
- XML Objects
- xmlRead
- xmlReadStr
- xmlRelaxNG
- xmlRemove
- xmlSchema
- xmlSetAttributes
- xmlValidate
- xmlWrite
- xmlXPath
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
htmlWrite
Write a HTML document in a file
Syntax
htmlWrite(doc [, filename] [, indent]) htmlWrite(doc [, indent])
Arguments
- doc
doc, a mlist typed XMLDoc
- filename
filename, a string
- indent
indent, a boolean
Description
Write a HTML document in a file with the given filename or with the document url. If indent is true, then the document will be indented, by default indent is true.
Examples
doc = htmlRead("http://www.scilab.org"); htmlWrite(doc, TMPDIR+"/scilab.html", %f); // Now we open the previous file, modify it and save it doc1 = htmlRead(TMPDIR+"/scilab.html"); xp = xmlXPath(doc1, "//title"); e = xp(1); e.content = "Hello Scilab World"; htmlWrite(doc1); // Now we check that the modification has been done doc2 = htmlRead(TMPDIR+"/scilab.html"); xp = xmlXPath(doc2, "//title"); xp(1).content xmlDelete("all");
See also
- xmlDump — Dump a XML object
History
Version | Description |
5.5.0 | HTML features added. |
Report an issue | ||
<< htmlReadStr | XML Management | xmlAddNs >> |