我有一个基于文本的文件,其中缩进表示XML文件的每个XML标记。
我该如何在C#中将此文本转换为示例XML?我有点迷失了。我必须计算空格并查看列表以确定何时关闭标记。
我该如何在C#中将此文本转换为示例XML?我有点迷失了。我必须计算空格并查看列表以确定何时关闭标记。
sampleroot
rootHeader
miscInformation
Creation
DocumentIdentification
Identifier
Message_Type
Notes
StandardDocumentationIdentification
Standard
Version
Receiver
Name
lok
Location
Sender
Name
lok2
msgref
DocumentIdentifier
HoldInformation
Name
Date
ReleaseInformation
Date
HoldDocumentReference
AlternativeIdentifier
Authority
Identifier
Notes
ReleaseDocumentReference
AlternativeIdentifier
Authority
Identifier
Notes