ZVON > References > DOM1 Reference

createCDATASection (method)

Owning interface and usage:  
Document.createCDATASection(data)

Member of these other interfaces :  
none

Description:  
Creates a CDATASection node whose value is the specified string.

Parameters:  
DOMString data  -  The data for the CDATASection contents.

Returns:  
CDATASection -  The new CDATASection object.

Exceptions:  
DOMException NOT_SUPPORTED_ERR
Raised if this document is an HTML document.


Example:
JavaScript:
  var cSection = document.createCDATASection('some text for CDATA-section');
  var output1 = cSection.nodeType;
  var output2 = cSection.data;
Output:
desired your browser
output1: 4
output2: some text for CDATA-section



_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet




Related sites:
  • dotNet Slackers - Your latest resource for ASP.NET
  • Dotnet Spider - Outsourcing and Offshore software development in India
  • XML - Xselerator, XSL Editor, BizTalk Utilities, XML Tutorials, Learn XML
  • Planet Source Code - The largest public source code database on the Internet
UNLIMITED Web Hosting by HostDepartment Alojamiento Web UK Domain Names glossary for conference call answering service
MSN VoIP Internettelefonie Hosted Exchange, SDSL VoIP Internettelefonie AT VoIP Internettelefonie DE