204. .xml

YaST2 SCR: Xml agent implementation

204.1. Description

SOME USEFUL INFORMATION ON THE AGENT

Access type: read/write/execute OR read-only OR execute-only

File Name: /usr/share/YaST2/scrconf/xml.scr

See: anyagent libscr man MANPAGE info INFOPAGE /usr/share/doc/packages/yast2-agent-xml/xml.html

204.2. Usage

Example 124. 

   Read(.xml, "<XML file path>")
   (["WHAT", "EVER", "YOU", "GET"])
   Write(.xml,$[  
		    "CDATA":["source"], 
		    "SystemID":"testmap", 
		    "rootElement":"testmap", 
		    "fileName":"testmap.xml",
		    "DocType":"testmap",  
		    "NameSpace":"http://www.suse.com/1.0/yast2ns" 
	         ], 
		 $[
		    "testkey":"testvalue"
		 ]
	  );
   Write testmap.xml with data from supplied map. Values mentioned in 
   CDATA list are treated as XML CDATA (i.e. source code).