company logo

XMLString :: save - Save XML string to file

When the XMLString has been opened via file name, changes may be written back to the XML file calling the function without parameter. In order to store the XML data to another file, or.when the XMLString has been opened with string data, the target path has to be passed as parameter.

When the XMLString is not a top element, nothing happens.

Implementation overview

Implementation details

  1. Save XML string to file
    XMLString  :: save (  )

    When the XMLString is the top string that has been opened via file name, changes are written back to the XML file. When the string has not been opened by file path, the function throws an exception.

  2. to list
  3. Save XML string to other file
    XMLString  :: save ( odaba::String &sPath )

    The XMLString is stored to the file passed in sPath.

    • sPath - File path
  4. to list