Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.1.0 - Português


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

VersãoDescrição
5.4.0 XML module introduced.
Report an issue
<< xmlDTD XML Management xmlElement >>

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:
Mon Jun 17 17:53:24 CEST 2024