Element: PCDATA

PCDATA describes the simplest XML structure of all, namely, plain text enclosed betweena tag pair.

Attributes

Name Type Optional Values
TARGET STRING Yes Name of the field in the current elementwhich will receive the character stringparsed as PCDATA.
OPTIONAL BOOLEAN Yes Indicates whether the PCDATA sequenceis optional or not. Default is FALSE.
MODE Yes PRESERVE; REPLACE; COLLAPSE This attribute is ignored unless the PCDATA's target fieldis a character string. It can take three values:
  • PRESERVE (Default value), the content of the PCDATA component is preserved and fetched as is in the target field, including white space, line breaks, tabs, etc.
  • REPLACE, tabs and line breaks are duly replaced by white space before being fetched into the target field
  • COLLAPSE: behaves like REPLACE, but sequences of more than one white space are replaced by a single white space character.
This behaviour is directly derived from the schema's whiteSpacefacet.

Content

Sequence of
META

Appears in

CONCAT; DISJUNCT; FORMULA; ENCLOSED; PERM; REPEAT

DTD declaration

<!ELEMENT PCDATA
(META)*
>

<!ATTLIST PCDATA
TARGET CDATA #IMPLIED
OPTIONAL (TRUE|YES|yes|Y|y|ON|On|on|true|True|1|FALSE|NO|no|N|n|OFF|Off|off|false|False|0) #IMPLIED
MODE (PRESERVE|REPLACE|COLLAPSE) #IMPLIED
>