Accessing Xml File Through Perl And Running It In Telnet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chinnu2809
    New Member
    • Feb 2008
    • 5

    Accessing Xml File Through Perl And Running It In Telnet

    I have ten xml files (each xml file is executed in batch or telnet using the command (say) xyz.xml1, xyz.xml2 in batch !)

    Now instead of executing each and every xml every time , i have to write a code in perl where it will access the ten xml files , run the xml one by one and produce the output in telnet or in batch !

    please help me!
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Originally posted by chinnu2809
    I have ten xml files (each xml file is executed in batch or telnet using the command (say) xyz.xml1, xyz.xml2 in batch !)

    Now instead of executing each and every xml every time , i have to write a code in perl where it will access the ten xml files , run the xml one by one and produce the output in telnet or in batch !

    please help me!
    Well, being this is a learning forum, we would like to see what code you have tried thus far. Please share it with us, enclosed in the proper code tags, and we will help you from there.

    Regards,

    Jeff

    Comment

    • chinnu2809
      New Member
      • Feb 2008
      • 5

      #3
      Originally posted by numberwhun
      Well, being this is a learning forum, we would like to see what code you have tried thus far. Please share it with us, enclosed in the proper code tags, and we will help you from there.

      Regards,

      Jeff


      for eg: i have a n xml file (for folder creation)

      xml code:

      Code:
      <CREATE-FOLDER>
      <PATH-ELEMENT>abc</PATH-ELEMENT>
      <FOLDER-NAME>def</FOLDER-NAME>
      </CREATE-FOLDER>
      saving it as folder.xml

      this xml is in c:\My Documents

      now through perl i have to gte folder.xml and run it in (cmd prompt) c:\>My Document(path) \folder.xml

      just help me how to link from perl to acees an xml and run it in command prompt or in batch
      Last edited by eWish; Feb 23 '08, 02:09 PM. Reason: Please use [code][/code] tags

      Comment

      • numberwhun
        Recognized Expert Moderator Specialist
        • May 2007
        • 3467

        #4
        Originally posted by chinnu2809
        for eg: i have a n xml file (for folder creation)

        xml code:

        Code:
        <CREATE-FOLDER>
        <PATH-ELEMENT>abc</PATH-ELEMENT>
        <FOLDER-NAME>def</FOLDER-NAME>
        </CREATE-FOLDER>
        saving it as folder.xml

        this xml is in c:\My Documents

        now through perl i have to gte folder.xml and run it in (cmd prompt) c:\>My Document(path) \folder.xml

        just help me how to link from perl to acees an xml and run it in command prompt or in batch
        First, I did request that you use the code tags that eWish had to edit your post with. If you see the sticky in this forum, you would have found out how to use them.

        Second, to execuse something on the system, just use the system() function.

        [code=perl]
        system(/path/to/folder.xml);
        [/code]

        Regards,

        Jeff

        Comment

        Working...