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

◆ LoadDocumentTypeNode()

XmlDocumentType System.Xml.XmlLoader.LoadDocumentTypeNode ( )
inlineprivate

Definition at line 345 of file XmlLoader.cs.

346 {
347 string publicId = null;
348 string systemId = null;
349 string value = _reader.Value;
350 string localName = _reader.LocalName;
352 {
353 string name = _reader.Name;
354 if (!(name == "PUBLIC"))
355 {
356 if (name == "SYSTEM")
357 {
358 systemId = _reader.Value;
359 }
360 }
361 else
362 {
363 publicId = _reader.Value;
364 }
365 }
366 XmlDocumentType xmlDocumentType = _doc.CreateDocumentType(localName, publicId, systemId, value);
367 IDtdInfo dtdInfo = _reader.DtdInfo;
368 if (dtdInfo != null)
369 {
371 }
372 else
373 {
375 }
376 return xmlDocumentType;
377 }
virtual XmlDocumentType CreateDocumentType(string name, string? publicId, string? systemId, string? internalSubset)
void LoadDocumentType(IDtdInfo dtdInfo, XmlDocumentType dtNode)
Definition XmlLoader.cs:507
XmlDocument _doc
Definition XmlLoader.cs:9
void ParseDocumentType(XmlDocumentType dtNode)
Definition XmlLoader.cs:478
virtual ? IDtdInfo DtdInfo
Definition XmlReader.cs:145
virtual string Name
Definition XmlReader.cs:65

References System.Xml.XmlLoader._doc, System.Xml.XmlLoader._reader, System.Xml.XmlDocument.CreateDocumentType(), System.Xml.Dictionary, System.Xml.XmlReader.DtdInfo, System.Xml.XmlLoader.LoadDocumentType(), System.Xml.XmlReader.LocalName, System.Xml.XmlReader.MoveToNextAttribute(), System.Xml.XmlReader.Name, System.Xml.XmlLoader.ParseDocumentType(), System.value, and System.Xml.XmlReader.Value.

Referenced by System.Xml.XmlLoader.LoadNode().