Writes a text string of XML data with accompanying header tags to a text file. Wire data to the XML Input input to determine the polymorphic instance to use or manually select the instance. All XML data must follow the standard LabVIEW XML schema.


icon

Inputs/Outputs

  • cpath.png XML File Path

    XML File Path is the path and filename to which you want to write XML data.

    The filename must have a .xml extension. When you specify an empty path, a dialog box prompts the user to specify an XML file.

  • cstr.png XML Input

    XML Input contains XML data to write to the file.

  • cstr.png XML Encoding

    XML Encoding specifies the encoding scheme for the XML file. LabVIEW supports ANSI and Multibyte encoding schemes.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • cbool.png Standalone? (T)

    Standalone? specifies the value for the standalone attribute in the XML declaration. Standalone? determines whether the document exists entirely on its own (TRUE), or depends on other files (FALSE).

  • ipath.png XML File Path(duplicate)

    XML File Path(duplicate) is the path of the file to which the VI writes data.

    You can use this output to determine the file path that you selected through a dialog box. XML File Path(duplicate) has a value of <Not A Path> if you cancelled the dialog box.

  • istr.png XML String

    XML String contains the XML data that the VI writes to the specified file.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\File IO\XML\Flatten and Unflatten XML\Flatten and Unflatten XML.lvproj