xml 添加xsi:schemaLocation 属性

Dim schemaLocation  As XmlAttribute = XmlDoc.CreateAttribute("xsi", "schemaLocation", "http://www.w3.org/2001/XMLSchema-instance")
schemaLocation.Value ="urn:HouseBillOfLading-1.0 C:\documentschema\main\maindoc\HouseBillOfLading-1.0.xsd"
EleBody.Attributes.Append(schemaLocation)

c# 自己写吧 我觉的差距不咋大


你可能感兴趣的:(c,xml,C#)