xml 添加xsi:schemaLocation 属性


[vb] view plain copy print ?
  1. Dim schemaLocation  As XmlAttribute = XmlDoc.CreateAttribute("xsi""schemaLocation""http://www.w3.org/2001/XMLSchema-instance")  
  2. schemaLocation.Value ="urn:HouseBillOfLading-1.0 C:\documentschema\main\maindoc\HouseBillOfLading-1.0.xsd"  
  3. EleBody.Attributes.Append(schemaLocation)  

[csharp] view plain copy print ?
  1. c# 自己写吧 我觉的差距不咋大 

你可能感兴趣的:(xml 添加xsi:schemaLocation 属性)