Hi Monks, I have several VB files(.frm files). I want to convert this into XML files. These .frm files have the name value pairs. Note that there could be parent and child elements. The example of a VB .frm file is as below. Please let me know if there is a perl module or a program that I could use. If not please give me a suggestion as to how to go about. Thank you, Nagesh Yencharla
VERSION 5.00 Begin VB.Form Form1 Caption = "Form1" ClientHeight = 6465 ClientLeft = 60 ClientTop = 345 ClientWidth = 11715 LinkTopic = "Form1" ScaleHeight = 6465 ScaleWidth = 11715 StartUpPosition = 3 'Windows Default Begin VB.Frame main_frame Caption = "Frame1" Height = 8775 Left = 0 TabIndex = 0 Top = 360 Width = 10695 Begin VB.TextBox sub_category_creator_text Height = 285 Left = 7320 TabIndex = 8 Top = 1680 Width = 1815 End Begin VB.TextBox category_creator_text Height = 285 Left = 2040 TabIndex = 6 Top = 1680 Width = 2295 End Begin VB.TextBox reference_number_text Height = 285 Left = 2040 TabIndex = 4 Top = 1200 Width = 2295 End Begin VB.TextBox title_text Height = 285 Left = 2040 TabIndex = 2 Top = 600 Width = 4695 End Begin VB.Image sub_category_picker_image Height = 375 Left = 9360 Top = 1680 Width = 375 End Begin VB.Label sub_category_creator Alignment = 1 'Right Justify Caption = "Sub Category (Creator)" Height = 375 Left = 5520 TabIndex = 7 Top = 1680 Width = 1695 End Begin VB.Image creator_picker_image Height = 375 Left = 4440 Top = 1680 Width = 375 End Begin VB.Label category_creator Alignment = 1 'Right Justify Caption = "Category (Creator)" Height = 375 Left = 360 TabIndex = 5 Top = 1680 Width = 1575 End Begin VB.Label reference_number Alignment = 1 'Right Justify Caption = "Reference Number" Height = 375 Left = 360 TabIndex = 3 Top = 1200 Width = 1575 End Begin VB.Label TitleLabel Alignment = 1 'Right Justify Caption = "Title*:" Height = 375 Left = 360 TabIndex = 1 Top = 600 Width = 1575 End End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Label1_Click() End Sub Private Sub Title_Click() End Sub Private Sub Text2_Change() End Sub Private Sub question_text_Change() End Sub

Added ".frm" to title 2002-02-14 dvergin


In reply to VB .frm File to XML file by nagesh

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.