Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl($output) in /home/arjendk/codingspace.org/wp-includes/classes.php on line 584

Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl($output) in /home/arjendk/codingspace.org/wp-includes/classes.php on line 584

Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el($output) in /home/arjendk/codingspace.org/wp-includes/classes.php on line 584

Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el($output) in /home/arjendk/codingspace.org/wp-includes/classes.php on line 584

Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el($output) in /home/arjendk/codingspace.org/wp-includes/classes.php on line 603

Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl($output) in /home/arjendk/codingspace.org/wp-includes/classes.php on line 702

Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl($output) in /home/arjendk/codingspace.org/wp-includes/classes.php on line 702

Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el($output) in /home/arjendk/codingspace.org/wp-includes/classes.php on line 702

Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el($output) in /home/arjendk/codingspace.org/wp-includes/classes.php on line 702

Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el($output) in /home/arjendk/codingspace.org/wp-includes/classes.php on line 727

Strict Standards: Redefining already defined constructor for class wpdb in /home/arjendk/codingspace.org/wp-includes/wp-db.php on line 58

Deprecated: Assigning the return value of new by reference is deprecated in /home/arjendk/codingspace.org/wp-includes/cache.php on line 99

Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /home/arjendk/codingspace.org/wp-includes/cache.php on line 404

Deprecated: Assigning the return value of new by reference is deprecated in /home/arjendk/codingspace.org/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/arjendk/codingspace.org/wp-includes/theme.php on line 576
Codingspace.org » 2008 » March

Main menu:


Site search

Archives

RSS Arjen's Friendfeed

RSS Richard's del.icio.us links

RSS Maurits' Stumbled Items

Archive for March, 2008

How to serialize a string as CDATA in .NET

If you want to serialize an object that contains HTML data in one of its properties, you might want to make sure the HTML ends up in a CDATA section to prevent parsing errors.

Unfortunately, you can’t just put <![CDATA[ and ]]> around your HTML string. Also, the .NET framework does not provide an attribute that tells the serializer to make a string into a CDATA section.

However, you can declare a property of the type XMLCDataSection to get the desired result.