YaST2 Developers Documentation: XML



functions
files
intro

XML

modules/XML.ycp
XML routines

Global Functions

global xmlCreateDoc (symbol doc, map docSettings) -> void

define a new doc type with custom settings, if not defined, global settings will be used.

Parameters:
doc
docSettings

global YCPToXMLFile (symbol docType, map contents, string outputPath) -> boolean

YCPToXMLFile() Write YCP data into formated XML file

Parameters:
docType
contents a map with YCP data
outputPath the path of the XML file
Return value:
true on sucess

global XMLToYCPFile (string xmlFile) -> map<string, any>

Read XML file into YCP

Parameters:
xmlFile XML file name to read
Return value:
Map with YCP data

YaST2 Developers Documentation