I am trying to add a processing instructions to my xml file in the source view of component xml. For example:
<?altova_sps C:\Users\src\sps\2012\spsfile.sps?>
<my_element xmlns="uuid:8d903098-e607-4d96-90a7-14d2d188dab7">
...
</my_element>
After I click on Save, Tridion CME automatically removed the processing instruction. Is there a way to change this behavior?
(I want to add the processing instruction so that I can open the xml file with XMLSpy in Authentic View using WebDAV)
I have researched this a bit, and I am not convinced this can be done from within the CMS. However you can probably achieve this by creating an HTTPModule or Proxy or some form which transforms the requests and responses made to the /webdav directory of the CME.
Conceptually when a request is made by XMLSpy, the new module would pre-pend the desired instruction to the XML based on the item being a Component and the Schema it is based on. Then when you save (POST) the data back it would need to strip it out again. This would leave the XML structure in the format that SDL Tridion requires.
Hope that helps
Chris
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With