This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Product and Other Certifications and the fly likes Nested CDATA Sections Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Nested CDATA Sections" Watch "Nested CDATA Sections" New topic

Nested CDATA Sections

Andy Smith
Ranch Hand

Joined: Sep 28, 2003
Posts: 239
Is that possible to have a CDATA Section inside a CDATA Section?

Share Knowledge to gain it.
SCJP 2, SCWCD 2, SCDJWS, IBM 141 (In Progress), IBM 486 (Next)
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
I'm afraid it's not possible.
Why would you need to be able to do that?

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Dhiren Joshi
Ranch Hand

Joined: Dec 09, 2003
Posts: 463
Not possible if you do that u are putting illegal argument ]]> inside a CDATA.
See the XML specs

It is sorta covered in the JavaRanch Style Guide.
subject: Nested CDATA Sections
Similar Threads
How to insert brackets into an XML element value?
Formatting in XML
Ajax and spanish characters