Plands.com Logo  Business Internet Services 
Main Menu
Home
Planetary CRM
  Benefits
  Features
  Demo
E-Mail Services
  E-mail Hosting
  Newsletters
  Discussion Lists
Web Hosting
Server Co-location
and Administration
Web Applications
Technical Support
Contact Us
DXP Samples
 
DxpHome  ||   Samples  ||   Details  ||   Docs  ||   Trees  ||   xml-xsl  ||   Links


The Cdata tag store plain text, passive HTML tags and entities as text and appends them to the request output when the exec() method is called.

Mostly used as a way to place an active tag within an attribute of an html tag -- something that is not otherwise legal.

  
<![CDATA[<table width="650" border="0" bgcolor="]]><dxp:Rp name="user_color" /><![CDATA[">]]>

Also used with the Condition tag to include XML characters in a condition statement.


@author Mark Ashworth
@version 0.2, 2001-05-09


This constructor is called by the DxpBuilder to convert text and passive tags to a Cdata node. The content is added in the constructor. When an explicit Cdata tag is encountered in the source file the no argument constructor is used instead and the content is added by the addContent() method.

If the char data just contains whitespace, which happens when active tags are separated by a newline char, this content is just set to null. When content is null it is not displayed by the tag's exec() method. This reduces the number of blank lines in the final output of a dxp page.


@param ID is an int was assigned by the DxpBuilder to the new node. It should indicate the order in which this node was created as the parser processed the page. This will be passed on to the base class DxpNode.
@param data is the char data passed by the parser to store in this node.

Return to Index

Note: We have tried to test all of the code examples but they may contain errors. Any questions, comments, suggestions, or problems should be sent to info@plands.com.