Xml namespace
Xmlns
01 Syntax
Microsoft.VisualBasic.Text.Xml.Xmlns
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Set | 1 | Set the value of a new xml namespace.(ns命名空间参数不需要添加 xmlns: 前缀) |
| RootParser | 1 | The parser for the xml root node. |
| WriteNamespace | 1 | |
| Clear | 1 | |
| ToString | 1 |
03 Properties
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| DefaultXmlns | 2 | xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
05 Members
Set(
String, String)Set the value of a new xml namespace.(ns命名空间参数不需要添加 xmlns: 前缀)
Parameters
| Name | Type | Description |
|---|---|---|
ns | String | - |
value | String | - |
RootParser(
String)The parser for the xml root node.
Parameters
| Name | Type | Description |
|---|---|---|
root | String | - |
WriteNamespace(
StringBuilder, Boolean)Remarks
当前的这个对象是新值,需要替换掉文档里面的旧值
Parameters
| Name | Type | Description |
|---|---|---|
xml | StringBuilder | - |
xmlns
xmlns=...
namespace
枚举所有xmlns:<type>开始的属性
DefaultXmlns
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
DefaultXmlns
xsd
xsi
ns
Clear(
String)ToString()