# doc-cache created by Octave 8.4.0
# name: cache
# type: cell
# rows: 3
# columns: 5
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
isOctave


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 176
 Checks whether Octave is the current running environment.

 FORMAT resp = isOctave()

 OUTPUT
   resp - logical variable, true if Octave is detected and false otherwise



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 58
 Checks whether Octave is the current running environment.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
jsonread


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 230
 Reads JSON files.

 FORMAT val = jsonread(fname)

 INPUT
   fname - path to the JSON file. It can be absolut, relative or only the filename (if in the search path).

 OUTPUT
   val - structure, content of the JSON file.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 18
 Reads JSON files.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
jsonwrite


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 178
 Writes JSON files.

 FORMAT val = jsonwrite(fname,val)

 INPUT
   fname - (absolut or relative) path to the JSON file.
   val   - structure to be saved in the JSON file.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 19
 Writes JSON files.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
readxml


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 3603
XML_READ reads xml files and converts them into Matlab's struct tree.

 DESCRIPTION
 tree = readxml(xmlfile) reads 'xmlfile' into data structure 'tree'

 tree = readxml(xmlfile, Name, Value) reads 'xmlfile' into data structure 'tree'
 according to your preferences

 [tree, RootName, DOMnode] = readxml(xmlfile) get additional information
 about XML file

 INPUT:
  xmlfile	URL or filename of xml file to read
  Name - Value
    ItemName - default 'item' - name of a special tag used to itemize
                    cell arrays
    ReadAttr - default true - allow reading attributes
    ReadSpec - default true - allow reading special nodes
    Str2Num  - default true - convert strings that look like numbers
                   to numbers
    NoCells  - default true - force output to have no cell arrays
    Debug    - default false - show mode specific error messages
    NumLevels- default infinity - how many recursive levels are
      allowed. Can be used to speed up the function by prunning the tree.
    RootOnly - default true - output variable 'tree' corresponds to
      xml file root element, otherwise it correspond to the whole file.
    ItemID   - default 'name' - name of the field identifying items,
      Used for matching array items during updating.
 OUTPUT:
  tree         tree of structs and/or cell arrays corresponding to xml file
  RootName     XML tag name used for root (top level) node.
               Optionally it can be a string cell array storing: Name of
               root node, document "Processing Instructions" data and
               document "comment" string
  DOMnode      output of xmlread

 DETAILS:
 Function readxml first calls MATLAB's xmlread function and than
 converts its output ('Document Object Model' tree of Java objects)
 to tree of MATLAB struct's. The output is in format of nested structs
 and cells. In the output data structure field names are based on
 XML tags, except in cases when tags produce illegal variable names.

 Several special xml node types result in special tags for fields of
 'tree' nodes:
  - node.CONTENT - stores data section of the node if other fields are
    present. Usually data section is stored directly in 'node'.
  - node.ATTRIBUTE.name - stores node's attribute called 'name'.
  - node.COMMENT - stores node's comment section (string). For global
    comments see "RootName" output variable.
  - node.CDATA_SECTION - stores node's CDATA section (string).
  - node.PROCESSING_INSTRUCTIONS - stores "processing instruction" child
    node. For global "processing instructions" see "RootName" output variable.
  - other special node types like: document fragment nodes, document type
   nodes, entity nodes, notation nodes and processing instruction nodes
   will be treated like regular nodes

 EXAMPLES:
   MyTree=[];
   MyTree.MyNumber = 13;
   MyTree.MyString = 'Hello World';
   xml_write('test.xml', MyTree);
   [tree treeName] = readxml ('test.xml');
   disp(treeName)

 See also:
   writexml, xmlread, xmlwrite

 Written by Jarek Tuszynski, SAIC, jaroslaw.w.tuszynski_at_saic.com

 References:
  - Function inspired by Example 3 found in xmlread function.
  - Output data structures inspired by xml_toolbox structures.

 Rhordi Cusack 13/2/2010 - took out date conversion option in str2var as this
   erroneously leaves 3-double vectors as strings
 Rhordi Cusack - add support for XML arrays
 Tibor Auer - add support for arrays of structures with missing fields
 Tibor Auer - Octave compatibility
 Tibor Auer - add inputParser



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 69
XML_READ reads xml files and converts them into Matlab's struct tree.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
writexml


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 3646
XML_WRITE  Writes Matlab data structures to XML file

 DESCRIPTION
 writexml( filename, tree) Converts Matlab data structure 'tree' containing
 cells, structs, numbers and strings to Document Object Model (DOM) node
 tree, then saves it to XML file 'filename' using Matlab's xmlwrite
 function. Optionally one can also use alternative version of xmlwrite
 function which directly calls JAVA functions for XML writing without
 MATLAB middleware. This function is provided as a patch to existing
 bugs in xmlwrite (in R2006b).

 writexml(filename, tree, RootName, Name, Value) allows you to specify
 additional preferences about file format

 DOMnode = writexml('', tree) same as above except that DOM node is
 not saved to the file but returned.

 INPUT
   filename     file name
   tree         Matlab structure tree to store in xml file.
   RootName     String with XML tag name used for root (top level) node
                Optionally it can be a string cell array storing: Name of
                root node, document "Processing Instructions" data and
                document "comment" string
   Name - Value
     ItemName - default 'item' -  name of a special tag used to
                     itemize cell arrays
     XmlEngine - let you choose the XML engine. Currently default is
       'Xerces', which is using directly the apache xerces java file.
       Other option is 'Matlab' which uses MATLAB's xmlwrite and its
       XMLUtils java file. Both options create identical results except in
       case of CDATA sections where xmlwrite fails.
     CellItem - default 'true' - allow cell arrays to use 'item'
       notation. See below.
     RootOnly - default true - output variable 'tree' corresponds to
       xml file root element, otherwise it correspond to the whole file.
     StructItem - default 'true' - allow arrays of structs to use
       'item' notation. For example "StructItem = true" gives:
         <a>
           <b>
             <item> ... <\item>
             <item> ... <\item>
           <\b>
         <\a>
       while "StructItem = false" gives:
         <a>
           <b> ... <\b>
           <b> ... <\b>
         <\a>


 Several special xml node types can be created if special tags are used
 for field names of 'tree' nodes:
  - node.CONTENT - stores data section of the node if other fields
    (usually ATTRIBUTE are present. Usually data section is stored
    directly in 'node'.
  - node.ATTRIBUTE.name - stores node's attribute called 'name'.
  - node.COMMENT - create comment child node from the string. For global
    comments see "RootName" input variable.
  - node.PROCESSING_INSTRUCTIONS - create "processing instruction" child
    node from the string. For global "processing instructions" see
    "RootName" input variable.
  - node.CDATA_SECTION - stores node's CDATA section (string). Only works
    if Pref.XmlEngine='Xerces'. For more info, see comments of F_xmlwrite.
  - other special node types like: document fragment nodes, document type
    nodes, entity nodes and notation nodes are not being handled by
    'writexml' at the moment.

 OUTPUT
   DOMnode      Document Object Model (DOM) node tree in the format
                required as input to xmlwrite. (optional)

 EXAMPLES:
   MyTree=[];
   MyTree.MyNumber = 13;
   MyTree.MyString = 'Hello World';
   writexml('test.xml', MyTree);
   type('test.xml')
   %See also xml_tutorial.m

 See also
   readxml, xmlread, xmlwrite

 Written by Jarek Tuszynski, SAIC, jaroslaw.w.tuszynski_at_saic.com
 Tibor Auer - add inputParser
 Tibor Auer - Octave



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
XML_WRITE  Writes Matlab data structures to XML file

 DESCRIPTION
 writex...





