I am working on creating components using core services 2011 in SDL Tridion 2011 SP1.
I just want to know, is it possible to get the schema name when I have component source XML directly in my local machine.
Consider i have ABCD.xml stored in my local machine. I want to give the this ABCD.xml as input get the schema that it is using.
Is it possible Via core services 2011, if yes please share your views on it.
Just to have a sample content xml file in my local machine. it is here.
<Content xmlns="uuid:someUUID">
<first>first filed</first>
<second>second field</second>
</Content>
Thank you.
You can use the following code:
XmlDocument componentXml = new XmlDocoment();