Module XML

Provides classes and predicates for working with XML files and their content.

Import path

semmle.code.csharp.XML

Imports

Element

Provides the Element class, the base class of all C# program elements.

Location

Provides the Location class to give a location for each program element.

Classes

XMLAttribute

An attribute that occurs inside an XML element.

XMLCharacters

A sequence of characters that occurs between opening and closing tags of an XML element, excluding other elements.

XMLComment

A comment of the form <!-- ... --> is an XML comment.

XMLDTD

A “Document Type Definition” of an XML file.

XMLElement

An XML tag in an XML file.

XMLFile

An XML file.

XMLLocatable

An XML element that has a location.

XMLLocatableElement

Adapter so that XMLLocatables are elements

XMLNamespace

A namespace used in an XML file

XMLParent

An XMLParent is either an XMLElement or an XMLFile, both of which can contain other elements.