File: xml.frm

package info (click to toggle)
kompozer 1%3A0.8~b3.dfsg.1-0.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 283,956 kB
  • ctags: 314,166
  • sloc: cpp: 1,763,181; ansic: 990,028; xml: 97,969; makefile: 46,334; asm: 34,989; perl: 26,943; sh: 20,165; cs: 6,232; java: 5,513; python: 3,221; pascal: 340; lex: 306; php: 244; csh: 132; objc: 97; yacc: 79; ada: 49; awk: 14; sql: 4; sed: 4
file content (76 lines) | stat: -rw-r--r-- 2,207 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   4932
   ClientLeft      =   48
   ClientTop       =   276
   ClientWidth     =   5052
   LinkTopic       =   "Form1"
   ScaleHeight     =   4932
   ScaleWidth      =   5052
   StartUpPosition =   3  'Windows Default
   Begin MSComctlLib.TreeView treeXML 
      Height          =   4692
      Left            =   120
      TabIndex        =   3
      Top             =   120
      Width           =   3132
      _ExtentX        =   5525
      _ExtentY        =   8276
      _Version        =   393217
      Indentation     =   176
      LineStyle       =   1
      Style           =   7
      Appearance      =   1
   End
   Begin VB.TextBox txtURL 
      Height          =   288
      Left            =   3480
      TabIndex        =   1
      Text            =   "M:\moz\mozilla\webshell\embed\ActiveX\xml\tests\vbxml\test.xml"
      Top             =   480
      Width           =   1332
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Parse XML"
      Height          =   492
      Left            =   3480
      TabIndex        =   0
      Top             =   960
      Width           =   1332
   End
   Begin VB.Label Label1 
      Caption         =   "XML File:"
      Height          =   252
      Left            =   3480
      TabIndex        =   2
      Top             =   120
      Width           =   852
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
    Dim o As New MozXMLDocument
    o.URL = txtURL.Text
    Debug.Print o.root.tagName
    treeXML.Nodes.Add , , "R", "XML"
    buildBranch "R", o.root
End Sub

Sub buildBranch(ByRef sParentKey As String, o As Object)
    Dim n As Integer
    Dim c As Object
    Dim sKey As String
    
    Set c = o.children
    For i = 0 To c.length - 1
        sKey = sParentKey + "." + CStr(i)
        treeXML.Nodes.Add sParentKey, tvwChild, sKey, c.Item(i).tagName
        buildBranch sKey, c.Item(i)
    Next
End Sub