gpt4 book ai didi

XML 模式 - 导入模式中的新行

转载 作者:数据小太阳 更新时间:2023-10-29 02:40:33 25 4
gpt4 key购买 nike

我用 this site 中的代码创建了一个 xml 模式.

Sub Create_XSD2()


Dim StrMyXml As String, MyMap As XmlMap
Dim StrMySchema As String
' Book.xml is the file created in section one of this topic.
StrMyXml = "C:\BookData.xml"

' Turn off async loading.
Application.DisplayAlerts = False
' Add the string to the XmlMaps collection.
Set MyMap = ThisWorkbook.XmlMaps.Add(StrMyXml)
Application.DisplayAlerts = True

' Create an empty file and output the schema.
StrMySchema = ThisWorkbook.XmlMaps(1).Schemas(1).XML
Open "C:\BookData2.xsd" For Output As #1
Print #1, StrMySchema
Close #1
End Sub

在我从 xml 文件导入数据后,所有内容都放在一行中。我怎样才能改变它?谢谢,劳伦斯

最佳答案

检查目录路径!

关于XML 模式 - 导入模式中的新行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25504638/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com