-4

I have an XML file with 30 000 lines of code which I don't have any idea what it can be. My goal is to identify what this XML for. Whether it is a dump of Cache(Intersystems) Database, or some source code..I don't know, I am just assuming. Then I started to copy-paste into google to find what programming language it might be, and could not figure it out. So I came here for help.

<Method name="xmlStartProcessRequestOLD">
<Description>Сохранил на всякий случай метод (изменял основной метод из     за ошибки )</Description>
<FormalSpec>xmlStream:%CharacterStream</FormalSpec>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[
        set res = ""
        set xml = xmlStream.Read()

        set docType = ..extractAndDecodeTagValue(xml, "docType")
        s ^lol($i(^lol),"ESEDO","docType") = docType
        set href = ..extractAndDecodeTagValue(xml, "href")
        set from = ..extractAndDecodeTagValue(xml, "from")

        // about a 100 lines of code, which I intentionally skipped

 q res
 ]]></Implementation>
 </Method>
 </Class>

Thank you!

  • Can you provide `extractAndDecodeTagValue` method code? – rfg Feb 09 '16 at 14:57
  • And contents on xml file – rfg Feb 09 '16 at 15:07
  • Most likely the code extracts attributes values from some node – rfg Feb 09 '16 at 15:07
  • It's really not very clear what you are asking, or what you are trying to solve. Please see http://stackoverflow.com/help/how-to-ask to understand how to ask a good question that will attract good answers. –  Feb 09 '16 at 16:51
  • I have an XML file with 30 000 lines of code which I don't have any idea what it can be. My goal is to identify what this XML for. Whether it is a dump of Cache(Intersystems) Database, or some source code.. I started to copy-paste into google to find what programming language it might be, and could not figure it out. So I came here for help. – Dastan Akhmetov Feb 10 '16 at 13:41
  • Where you got this file ? – DAiMor Feb 11 '16 at 12:49
  • @DAiMor from my boss.. any ideas about the code? – Dastan Akhmetov Feb 11 '16 at 14:25
  • 2
    This code was written in our company, please contact with us – DAiMor Feb 11 '16 at 14:31

1 Answers1

4

It is a fragment of source code for some class in Caché. All sources in Caché can be exported and imported in XML format. To import that file, you can open Studio, and with drag-and-drop or with menu "Инструменты->Импортировать локально" or by hotkey Ctrl+I. With command in terminal/csession
do $system.OBJ.Load("your file.xml")
If you need more details, you can ask in russian here

DAiMor
  • 3,185
  • 16
  • 24