Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetURN()

void System.Xml.Schema.Asttree.SetURN ( Axis axis,
XmlNamespaceManager nsmgr )
inlineprivate

Definition at line 172 of file Asttree.cs.

173 {
174 if (axis.Prefix.Length != 0)
175 {
176 axis.Urn = nsmgr.LookupNamespace(axis.Prefix);
177 if (axis.Urn == null)
178 {
179 throw new XmlSchemaException(System.SR.Sch_UnresolvedPrefix, axis.Prefix);
180 }
181 }
182 else if (axis.Name.Length != 0)
183 {
184 axis.Urn = null;
185 }
186 else
187 {
188 axis.Urn = "";
189 }
190 }
static string Sch_UnresolvedPrefix
Definition SR.cs:730
Definition SR.cs:7

References System.Xml.Dictionary, and System.SR.Sch_UnresolvedPrefix.

Referenced by System.Xml.Schema.Asttree.CompileXPath().