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

◆ WriteStartDocumentImpl()

void System.Xml.XmlWellFormedWriter.WriteStartDocumentImpl ( XmlStandalone standalone)
inlineprivate

Definition at line 2512 of file XmlWellFormedWriter.cs.

2513 {
2514 try
2515 {
2516 AdvanceState(Token.StartDocument);
2517 if (_conformanceLevel == ConformanceLevel.Auto)
2518 {
2519 _conformanceLevel = ConformanceLevel.Document;
2521 }
2522 else if (_conformanceLevel == ConformanceLevel.Fragment)
2523 {
2525 }
2526 if (_rawWriter != null)
2527 {
2528 if (!_xmlDeclFollows)
2529 {
2531 }
2532 }
2533 else
2534 {
2536 }
2537 }
2538 catch
2539 {
2540 _currentState = State.Error;
2541 throw;
2542 }
2543 }
static string Xml_CannotStartDocumentOnFragment
Definition SR.cs:166
Definition SR.cs:7
virtual void WriteXmlDeclaration(XmlStandalone standalone)
static readonly State[] s_stateTableDocument

References System.Xml.XmlWellFormedWriter._conformanceLevel, System.Xml.XmlWellFormedWriter._currentState, System.Xml.XmlWellFormedWriter._rawWriter, System.Xml.XmlWellFormedWriter._stateTable, System.Xml.XmlWellFormedWriter._writer, System.Xml.XmlWellFormedWriter._xmlDeclFollows, System.Xml.XmlWellFormedWriter.AdvanceState(), System.Xml.XmlWellFormedWriter.s_stateTableDocument, System.Xml.XmlWriter.WriteStartDocument(), System.Xml.XmlRawWriter.WriteXmlDeclaration(), and System.SR.Xml_CannotStartDocumentOnFragment.

Referenced by System.Xml.XmlWellFormedWriter.WriteStartDocument(), and System.Xml.XmlWellFormedWriter.WriteStartDocument().