I'm using the code below to loop through CTs. I want to get the XML in the source tab. I can see it in the node if I look at the full XML block for the CT, but how can I get it from the ComponentTemplateData object? Do I need to call GetListXML instead?
var ro = new ReadOptions();
String[] pubs = new String[]{"tcm:0-1-1"};
foreach(String s in pubs){
var pub = Tridion.Read(s, ro);
//Component Templates
filter.ItemTypes = new ItemType[]{ItemType.ComponentTemplate};
var list = Tridion.GetList(s, filter);
foreach(var item in list){
ctb=(ComponentTemplateData)item;
Debug.WriteLine(ctb.Title);
}