Scilab 6.0.1
- Aide de Scilab
- Traitement XML
- 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
xmlDump
Dump a XML object
Syntax
str = xmlDump(xmlObj [, indent])
Arguments
- xmlObj
xmlObj, a XML mlist
- indent
indent, a boolean
- str
str, a matrix of strings
Description
Dump a XML object. The objects which are dumpable are XMLDoc, XMLElement or XMLList. If indent is false (by default it is true), no indentation and carriage return will be added.
Examples
doc = xmlReadStr("<root><a att=""foo"" rib=""bar""><b>Hello</b></a></root>"); // Dump a document xmlDump(doc) // Dump a document without indentation xmlDump(doc, %f) // Dump a node list xmlDump(doc.root.children) //Dump an element xmlDump(doc.root.children(1)) xmlDelete(doc);
See also
- xmlWrite — Write a XML document in a file
History
Version | Description |
5.4.0 | XML module introduced. |
Report an issue | ||
<< xmlDTD | Traitement XML | xmlElement >> |