Writing formatted XML with XmlWriter

前端 未结 4 1680
臣服心动
臣服心动 2021-01-07 23:31

I\'m trying to write to an XML file to the isolated storage but I would like to format it like this:-


  

        
4条回答
  •  耶瑟儿~
    2021-01-08 00:03

    You can use DataSet.GetXML()

    Dim column As DataColumn
    For Each column In DataSet.Tables.Item(0).Columns
        column.ColumnMapping = MappingType.Attribute
    Next
    Dim xml As String = DataSet.GetXml()
    

    It is not related to XmlWriter but you can use it for formatting XML.

提交回复
热议问题