295. XML

XML routines

295.1. Authors

  • Anas Nashif <nashif@suse.de>

295.2. Summary of Module Globals

List of Global Functions

  • XMLError - The error string from the xml parser. It should be used when the agent did not return content. A reset happens before a new XML parsing starts.

  • XMLToYCPFile - Read XML file into YCP

  • XMLToYCPString - Read XML string into YCP

  • YCPToXMLFile - YCPToXMLFile() Write YCP data into formated XML file

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

List of Global Variables

    295.3. Global Functions

    295.3.1. XMLError

    The error string from the xml parser. It should be used when the agent did not return content. A reset happens before a new XML parsing starts.

    Return value

    • string - parser error

    295.3.2. XMLToYCPFile

    Read XML file into YCP

    Function parameters

    • string xmlFile

    Return value

    • map<string, any> - Map with YCP data

    295.3.3. XMLToYCPString

    Read XML string into YCP

    Function parameters

    • string xmlString

    Return value

    • map<string, any> - Map with YCP data

    295.3.4. YCPToXMLFile

    YCPToXMLFile() Write YCP data into formated XML file

    Function parameters

    • symbol docType

    • map contents

    • string outputPath

    Return value

    • boolean - true on sucess

    295.3.5. xmlCreateDoc

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

    Function parameters

    • symbol doc

    • map docSettings

    Return value

    • void

    295.4. Global Variables

    295.5. Module Requirements

    none