I followed this tutorial to make a tabzone webpart. if I want to manually add it to a page it works perfectly, but if I try to add it programmatically, it gives me out of index exception, which is because i need to set its XML property.

Now i got no clue how to setup this as property of webpart, as far as i know by the webpart is using HTML code to dynamically create a custom XML property of webpart. Do I have to create a instance of a editor class or something ?

If i add the webpart manually then i can simply change the properties using "Modify Webpart Properties, however here i have to add webpart to hundred of pages so that aint option here. the w3school link you have given me, tells more like using C# code in an XML file then using XML code in c# :S, i guess/
–
Muhammad RajaApr 12 '12 at 12:34

easy answers, replace ">" with > and "<" with < and simply assign the XML lines of code to a string, in order to use "hello" double quotes need to do it this way \"hello\" and assign the string to the Webpart property. took me ages to figure this out.