[xsd-users] Elements with CDATA content

James & Veri Martin verimart at hotmail.com
Tue Mar 6 22:59:00 EST 2012


I have string-based elements in my schema for which I'd like to use CDATA content.  I found this posting regarding the treatment of elements with CDATA content:
http://www.codesynthesis.com/pipermail/xsd-users/2008-March/001590.html

...but it dates from 2008.  I am wondering if the techniques referenced there are currently the only mechanisms for including CDATA content in an xs:string-based element?
Is there not an attribute I can set on an instance of a generated class for such elements that instructs serialization to enclose the content in a CDATA section?  I couldn't find any mention of CDATA content in the guide docs or the wiki.
Thanks,James 		 	   		  


More information about the xsd-users mailing list