FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/java/ql/lib/semmle/code/xml/XML.qll at codeql-cli/v2.19.2 · github/codeql · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
github
/
codeql
Public
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
10k
Code
Issues
998
Pull requests
467
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
java
/
ql
/
lib
/
semmle
/
code
/
xml
/
XML.qll
Copy path
More file actions
More file actions
Latest commit
History
History
History
69 lines (48 loc) · 1.87 KB
Breadcrumbs
codeql
/
java
/
ql
/
lib
/
semmle
/
code
/
xml
/
XML.qll
Copy path
File metadata and controls
69 lines (48 loc) · 1.87 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
/**
* Provides classes and predicates for working with XML files and their content.
*/
import
semmle.files.FileSystem
private
import
codeql.xml.Xml
private
module
Input
implements
InputSig
<
File
,
Location
>
{
class
XmlLocatableBase
=
@xmllocatable
or
@xmlnamespaceable;
predicate
xmllocations_
(
XmlLocatableBase
e
,
Location
loc
)
{
xmllocations
(
e
,
loc
)
}
class
XmlParentBase
=
@xmlparent;
class
XmlNamespaceableBase
=
@xmlnamespaceable;
class
XmlElementBase
=
@xmlelement;
class
XmlFileBase
=
File
;
predicate
xmlEncoding_
(
XmlFileBase
f
,
string
enc
)
{
xmlEncoding
(
f
,
enc
)
}
class
XmlDtdBase
=
@xmldtd;
predicate
xmlDTDs_
(
XmlDtdBase
e
,
string
root
,
string
publicId
,
string
systemId
,
XmlFileBase
file
)
{
xmlDTDs
(
e
,
root
,
publicId
,
systemId
,
file
)
}
predicate
xmlElements_
(
XmlElementBase
e
,
string
name
,
XmlParentBase
parent
,
int
idx
,
XmlFileBase
file
)
{
xmlElements
(
e
,
name
,
parent
,
idx
,
file
)
}
class
XmlAttributeBase
=
@xmlattribute;
predicate
xmlAttrs_
(
XmlAttributeBase
e
,
XmlElementBase
elementid
,
string
name
,
string
value
,
int
idx
,
XmlFileBase
file
)
{
xmlAttrs
(
e
,
elementid
,
name
,
value
,
idx
,
file
)
}
class
XmlNamespaceBase
=
@xmlnamespace;
predicate
xmlNs_
(
XmlNamespaceBase
e
,
string
prefixName
,
string
uri
,
XmlFileBase
file
)
{
xmlNs
(
e
,
prefixName
,
uri
,
file
)
}
predicate
xmlHasNs_
(
XmlNamespaceableBase
e
,
XmlNamespaceBase
ns
,
XmlFileBase
file
)
{
xmlHasNs
(
e
,
ns
,
file
)
}
class
XmlCommentBase
=
@xmlcomment;
predicate
xmlComments_
(
XmlCommentBase
e
,
string
text
,
XmlParentBase
parent
,
XmlFileBase
file
)
{
xmlComments
(
e
,
text
,
parent
,
file
)
}
class
XmlCharactersBase
=
@xmlcharacters;
predicate
xmlChars_
(
XmlCharactersBase
e
,
string
text
,
XmlParentBase
parent
,
int
idx
,
int
isCDATA
,
XmlFileBase
file
)
{
xmlChars
(
e
,
text
,
parent
,
idx
,
isCDATA
,
file
)
}
}
import
Make
<
File
,
Location
,
Input
>
Back
|
FazBrowse Home
|
New Git URL