@@ -132,7 +132,10 @@ class XmlFile extends XmlParent, File {
132132 XmlElement getARootElement ( ) { result = this .getAChild ( ) }
133133
134134 /** Gets a DTD associated with this XML file. */
135- XmlDTD getADTD ( ) { xmlDTDs ( result , _, _, _, this ) }
135+ XmlDtd getADtd ( ) { xmlDTDs ( result , _, _, _, this ) }
136+
137+ /** DEPRECATED: Alias for getADtd */
138+ deprecated XmlDtd getADTD ( ) { result = this .getADtd ( ) }
136139}
137140
138141/** DEPRECATED: Alias for XmlFile */
@@ -149,7 +152,7 @@ deprecated class XMLFile = XmlFile;
149152 * <!ELEMENT lastName (#PCDATA)>
150153 * ```
151154 */
152- class XmlDTD extends XmlLocatable , @xmldtd {
155+ class XmlDtd extends XmlLocatable , @xmldtd {
153156 /** Gets the name of the root element of this DTD. */
154157 string getRoot ( ) { xmlDTDs ( this , result , _, _, _) }
155158
@@ -174,8 +177,8 @@ class XmlDTD extends XmlLocatable, @xmldtd {
174177 }
175178}
176179
177- /** DEPRECATED: Alias for XmlDTD */
178- deprecated class XMLDTD = XmlDTD ;
180+ /** DEPRECATED: Alias for XmlDtd */
181+ deprecated class XMLDTD = XmlDtd ;
179182
180183/**
181184 * An XML element in an XML file.
@@ -282,15 +285,18 @@ class XmlNamespace extends XmlLocatable, @xmlnamespace {
282285 string getPrefix ( ) { xmlNs ( this , result , _, _) }
283286
284287 /** Gets the URI of this namespace. */
285- string getURI ( ) { xmlNs ( this , _, result , _) }
288+ string getUri ( ) { xmlNs ( this , _, result , _) }
289+
290+ /** DEPRECATED: Alias for getUri */
291+ deprecated string getURI ( ) { result = this .getUri ( ) }
286292
287293 /** Holds if this namespace has no prefix. */
288294 predicate isDefault ( ) { this .getPrefix ( ) = "" }
289295
290296 override string toString ( ) {
291- this .isDefault ( ) and result = this .getURI ( )
297+ this .isDefault ( ) and result = this .getUri ( )
292298 or
293- not this .isDefault ( ) and result = this .getPrefix ( ) + ":" + this .getURI ( )
299+ not this .isDefault ( ) and result = this .getPrefix ( ) + ":" + this .getUri ( )
294300 }
295301}
296302
0 commit comments