TextData Tag

ClosedDescription

Sets the text data for the record set.

ClosedSyntax

<TextData>Value</TextData>

Where Value equals the text data for the recordset. Valid for Text recordset types only.

ClosedParent Tag

<RecordSet>

ClosedRemarks

The <TextData> tag is available with the <Print> command only. It is not available with the <FormatSetup> command.

The <TextData> tag supports use of the XML keyword CDATA. This XML keyword is optional and is used to denote data that should not be interpreted as XML markup. A CDATA section starts with the sequence <![CDATA[and ends with the sequence ]]>. All characters enclosed between the two sequences are interpreted as characters, not markup.

Common XML markup escapes, which are necessary if you do not use the CDATA XML keyword, include the following:

  • &amp;, which is escaped to & (ampersand)

  • &quot;, which is escaped to " (double quotes)

  • &apos;, which is escaped to ' (single quote)

  • &lt;, which is escaped to < (less than)

  • &gt;, which is escaped to > (greater than)

ClosedExample

<?xml version="1.0" encoding="utf-8"?>

<XMLScript Version="2.0" Name="09232006_103601_Job1" ID="123">

<Command Name="Job1">

<Print>

<Format>Document1.btw</Format>

<RecordSet Name="Text Document 1" Type="btTextFile">

<Delimitation>btDelimQuoteAndComma</Delimitation>

<UseFieldNamesFromFirstRecord>true</UseFieldNamesFromFirstRecord>

<TextData>

<![CDATA["FirstName","LastName","City","Zip Code"

"Adam","Jones","Bellevue","98008"

"John","Smith","Kirkland","98293"]]>

</TextData>

</RecordSet>

</Print>

</Command>

</XMLScript>

ClosedRequirements

BTXML Script version 1.0 (BarTender 8.0 and later versions)