-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathclsImplementationLS.cls
More file actions
136 lines (116 loc) · 3.63 KB
/
clsImplementationLS.cls
File metadata and controls
136 lines (116 loc) · 3.63 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
END
Attribute VB_Name = "clsImplementationLS"
Attribute VB_GlobalNameSpace = True
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Option Explicit
' HtmlParserVB6 - A XML/HTML DOM-parser for VB6
' Copyright (C) 2011 Kristian. S Stangeland
'
' This library is free software; you can redistribute it and/or
' modify it under the terms of the GNU Lesser General Public
' License as published by the Free Software Foundation; either
' version 2.1 of the License, or (at your option) any later version.
'
' This library is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
' Lesser General Public License for more details.
'
' You should have received a copy of the GNU Lesser General Public
' License along with this library; if not, write to the Free Software
' Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
' Operation types
Public Enum OperationTypes
Node_Cloned = 1
Node_Imported = 2
Node_Deleted = 3
Node_Renamed = 4
Node_Adopted = 5
End Enum
' Constants for whatToShow
Public Enum FilterShow
Show_All = &HFFFFFFFF
Show_Element = &H1
Show_Attribute = &H2
Show_Text = &H4
Show_CData_Section = &H8
Show_Entity_Reference = &H10
Show_Entity = &H20
Show_Processing_Instruction = &H40
Show_Comment = &H80
Show_Document = &H100
Show_Document_Type = &H200
Show_Document_Fragment = &H400
Show_Notation = &H800
End Enum
' The mode constants
Public Enum ModeConst
Mode_Synchronous = 1
Mode_Asynchronous = 2
End Enum
' Constants returned by startElement and acceptNode
Public Enum Filter
Filter_Accept = 1
Filter_Reject = 2
Filter_Skip = 3
Filter_Interrupt = 4
End Enum
' Node position
Public Enum DocumentPosition
DocumentPosition_Disconnected = &H1
DocumentPosition_Preceding = &H2
DocumentPosition_Following = &H4
DocumentPosition_Contains = &H8
DocumentPosition_ContainedBy = &H10
DocumentPosition_ImplementationSpecific = &H20
End Enum
' The different node types
Public Enum NodeType
DOMElement = 1
DOMAttribute = 2
DOMText = 3
DOMCDataSection = 4
DOMEntityReference = 5
DOMEntity = 6
DOMProcessingInstruction = 7
DOMComment = 8
DOMDocument = 9
DOMDocumentType = 10
DOMNotation = 12
End Enum
Public Enum ActionTypes
Action_AppendAsChildren = 1
Action_ReplaceChildren = 2
Action_InsertBefore = 3
Action_InsertAfter = 4
Action_Replace = 5
End Enum
Public Function CreateLSParser(Mode As Long, SchemaType As String) As clsParser
Attribute CreateLSParser.VB_Description = "Create a new LSParser."
' Create the parser
Set CreateLSParser = New clsParser
End Function
Public Function CreateLSSerializer() As clsLSSerializer
Attribute CreateLSSerializer.VB_Description = "Create a new LSSerializer object."
' Create serializer
Set CreateLSSerializer = New clsLSSerializer
End Function
Public Function CreateLSInput() As clsLSInput
Attribute CreateLSInput.VB_Description = "Create a new empty input source object."
' Create the new input
Set CreateLSInput = New clsLSInput
End Function
Public Function CreateLSOutput() As clsLSOutput
Attribute CreateLSOutput.VB_Description = "Create a new empty output destination object."
' Create output
Set CreateLSOutput = New clsLSOutput
End Function