I'm trying to read the component source tab xml. when i try to get the component.content or Component.Xml Component.LoadXml(Component.xml) it returns an error.
using Tridion.ContentManager.Interop.TDS;
using Tridion.ContentManager.Interop.TDSDefines;
using Tridion.ContentManager;
string applicatiefContentWebdavUrl = "/webdav/04%2E4%20Website%20Functioneel%20Beheer/Building%20Blocks/beheer/dossier/content%20dossier.xml";
Component Component = (Component)tdse.GetObject(applicatiefContentWebdavUrl, EnumOpenMode.OpenModeEdit, null, XMLReadFilter.XMLReadAll);
ItemFields fields = new ItemFields(Component.Content, Component.Schema);
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1061: 'Tridion.ContentManager.Interop.TDS.Component' does not contain a definition for 'Content' and no extension method 'Content' accepting a first argument of type 'Tridion.ContentManager.Interop.TDS.Component' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 66: Component Component = (Component)tdse.GetObject(applicatiefContentWebdavUrl, EnumOpenMode.OpenModeEdit, null, XMLReadFilter.XMLReadAll);
Line 67:
Line 68: ItemFields fields = new ItemFields(Component.Content, Component.Schema);
Line 69:
Line 70: XmlDocument contentxml = new XmlDocument();