Owning Palette: LabVIEW Schema VIs and Functions
Requires: Base Development System
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.
Use the pull-down menu to select an instance of this VI.
Add to the block diagram | Find on the palette |
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. | |
XML Input contains XML data to write to the file. | |
XML Encoding specifies the encoding scheme for the XML file. LabVIEW supports ANSI and Multibyte encoding schemes. | |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | |
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). | |
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. | |
XML String contains the XML data that the VI writes to the specified file. | |
error out contains error information. This output provides standard error out functionality. |
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. | |
XML Input allows you to write multiple nodes of XML data to an XML file. | |
XML Encoding specifies the encoding scheme for the XML file. LabVIEW supports ANSI and Multibyte encoding schemes. | |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | |
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). | |
XML File Path 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 has a value of <Not A Path> if you cancelled the dialog box. | |
XML String contains the XML data that the VI writes to the specified file. | |
error out contains error information. This output provides standard error out functionality. |
Refer to the Flatten and Unflatten XML.lvproj in the labview\examples\File IO\XML\Flatten and Unflatten XML directory for an example of using the Write to XML File VI.