-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!

8
  • Can you provide extractAndDecodeTagValue method code?
    – rfg
    Commented Feb 9, 2016 at 14:57
  • And contents on xml file
    – rfg
    Commented Feb 9, 2016 at 15:07
  • Most likely the code extracts attributes values from some node
    – rfg
    Commented Feb 9, 2016 at 15:07
  • It's really not very clear what you are asking, or what you are trying to solve. Please see stackoverflow.com/help/how-to-ask to understand how to ask a good question that will attract good answers.
    – user1641172
    Commented Feb 9, 2016 at 16:51
  • 2
    This code was written in our company, please contact with us
    – DAiMor
    Commented Feb 11, 2016 at 14:31

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.