无为清净楼资源网 Design By www.qnjia.com
C#:
string w3NameSpace = "http://www.w3.org/2000/xmlns/";
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
//创建根节点
System.Xml.XmlNode root = doc.CreateNode(System.Xml.XmlNodeType.Element, "w", "wordDocument", "http://schemas.microsoft.com/office/word/2003/2/wordml");
System.Xml.XmlAttribute xa;
xa = doc.CreateAttribute("xmlns", "v", w3NameSpace);
xa.Value = "urn:schemas-microsoft-com:vml";
root.Attributes.Append(xa);
//为节点添加属性
xa = doc.CreateAttribute("xmlns", "w10", w3NameSpace);
xa.Value = "urn:schemas-microsoft-com:office:word";
root.Attributes.Append(xa);
xa = doc.CreateAttribute("xmlns", "SL", w3NameSpace);
xa.Value = "http://schemas.microsoft.com/schemaLibrary/2003/2/core";
root.Attributes.Append(xa);
xa = doc.CreateAttribute("xmlns", "aml", w3NameSpace);
xa.Value = "http://schemas.microsoft.com/aml/2001/core";
root.Attributes.Append(xa);
xa = doc.CreateAttribute("xmlns", "wx", w3NameSpace);
xa.Value = "http://schemas.microsoft.com/office/word/2003/2/auxHint";
root.Attributes.Append(xa);
xa = doc.CreateAttribute("xmlns", "o", w3NameSpace);
xa.Value = "urn:schemas-microsoft-com:office:office";
root.Attributes.Append(xa);
xa = doc.CreateAttribute("xmlns", "dt", w3NameSpace);
xa.Value = "uuid:C2F41010-65B3-11d1-A29F-00AA00C14882";
root.Attributes.Append(xa);
xa = doc.CreateAttribute("xmlns", "space", w3NameSpace);
xa.Value = "preserve";
root.Attributes.Append(xa);
//为节点增加值
System.Xml.XmlNode body = doc.CreateNode(System.Xml.XmlNodeType.Element, "v", "body", "urn:schemas-microsoft-com:vml");
System.Xml.XmlNode childNode = doc.CreateNode(System.Xml.XmlNodeType.Element, "o", "t", "urn:schemas-microsoft-com:office:office");
childNode.InnerText = "欢迎光临【孟宪会之精彩世界】";
//添加到内存树中
body.AppendChild(childNode);
root.AppendChild(body);
doc.AppendChild(root);
//添加节点声明
System.Xml.XmlDeclaration xd = doc.CreateXmlDeclaration("1.0", "UTF-8", "yes");
doc.InsertBefore(xd, doc.DocumentElement);
//添加处理指令
System.Xml.XmlProcessingInstruction spi = doc.CreateProcessingInstruction("mso-application", "progid=\"Word.Document\"");
doc.InsertBefore(spi, doc.DocumentElement);
//查询节点
System.Xml.XmlNamespaceManager nsmanager = new System.Xml.XmlNamespaceManager(doc.NameTable);
nsmanager.AddNamespace("w", "http://schemas.microsoft.com/office/word/2003/2/wordml");
nsmanager.AddNamespace("v", "urn:schemas-microsoft-com:vml");
nsmanager.AddNamespace("o", "urn:schemas-microsoft-com:office:office");
System.Xml.XmlNode node = doc.SelectSingleNode("w:wordDocument/v:body/o:t", nsmanager);
Response.Write(node.InnerText);
node.InnerText = "欢迎光临【孟宪会之精彩世界】:http://dotnet.aspx.cc/";
//创建CDATA节点
System.Xml.XmlCDataSection xcds = doc.CreateCDataSection("<a href='http://dotnet.aspx.cc/'>【孟宪会之精彩世界】</a>");
node.ParentNode.InsertAfter(xcds, node);
Response.Write(xcds.InnerText);
doc.Save(Server.MapPath("test.xml"));
VB.net
Dim w3NameSpace As String = "http://www.w3.org/2000/xmlns/"
Dim doc As New System.Xml.XmlDocument
'创建根节点
Dim root As System.Xml.XmlNode = doc.CreateNode(System.Xml.XmlNodeType.Element, "w", "wordDocument", "http://schemas.microsoft.com/office/word/2003/2/wordml")
Dim xa As System.Xml.XmlAttribute
xa = doc.CreateAttribute("xmlns", "v", w3NameSpace)
xa.Value = "urn:schemas-microsoft-com:vml"
root.Attributes.Append(xa)
'为节点添加属性
xa = doc.CreateAttribute("xmlns", "w10", w3NameSpace)
xa.Value = "urn:schemas-microsoft-com:office:word"
root.Attributes.Append(xa)
xa = doc.CreateAttribute("xmlns", "SL", w3NameSpace)
xa.Value = "http://schemas.microsoft.com/schemaLibrary/2003/2/core"
root.Attributes.Append(xa)
xa = doc.CreateAttribute("xmlns", "aml", w3NameSpace)
xa.Value = "http://schemas.microsoft.com/aml/2001/core"
root.Attributes.Append(xa)
xa = doc.CreateAttribute("xmlns", "wx", w3NameSpace)
xa.Value = "http://schemas.microsoft.com/office/word/2003/2/auxHint"
root.Attributes.Append(xa)
xa = doc.CreateAttribute("xmlns", "o", w3NameSpace)
xa.Value = "urn:schemas-microsoft-com:office:office"
root.Attributes.Append(xa)
xa = doc.CreateAttribute("xmlns", "dt", w3NameSpace)
xa.Value = "uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
root.Attributes.Append(xa)
xa = doc.CreateAttribute("xmlns", "space", w3NameSpace)
xa.Value = "preserve"
root.Attributes.Append(xa)
'为节点增加值
Dim body As System.Xml.XmlNode = doc.CreateNode(System.Xml.XmlNodeType.Element, "v", "body", "urn:schemas-microsoft-com:vml")
Dim childNode As System.Xml.XmlNode = doc.CreateNode(System.Xml.XmlNodeType.Element, "o", "t", "urn:schemas-microsoft-com:office:office")
childNode.InnerText = "欢迎光临【孟宪会之精彩世界】"
'添加到内存树中
body.AppendChild(childNode)
root.AppendChild(body)
doc.AppendChild(root)
'添加节点声明
Dim xd As System.Xml.XmlDeclaration = doc.CreateXmlDeclaration("1.0", "UTF-8", "yes")
doc.InsertBefore(xd, doc.DocumentElement)
'添加处理指令
Dim spi As System.Xml.XmlProcessingInstruction = doc.CreateProcessingInstruction("mso-application", "progid=""Word.Document""")
doc.InsertBefore(spi, doc.DocumentElement)
'查询节点
Dim nsmanager As New System.Xml.XmlNamespaceManager(doc.NameTable)
nsmanager.AddNamespace("w", "http://schemas.microsoft.com/office/word/2003/2/wordml")
nsmanager.AddNamespace("v", "urn:schemas-microsoft-com:vml")
nsmanager.AddNamespace("o", "urn:schemas-microsoft-com:office:office")
Dim node As System.Xml.XmlNode = doc.SelectSingleNode("w:wordDocument/v:body/o:t", nsmanager)
Response.Write(node.InnerText)
node.InnerText = "欢迎光临【孟宪会之精彩世界】:http://dotnet.aspx.cc/"
'创建CDATA节点
Dim xcds As System.Xml.XmlCDataSection = doc.CreateCDataSection("<a href='http://dotnet.aspx.cc/'>【孟宪会之精彩世界】</a>")
node.ParentNode.InsertAfter(xcds, node)
Response.Write(xcds.InnerText)
doc.Save(Server.MapPath("test.xml"))
string w3NameSpace = "http://www.w3.org/2000/xmlns/";
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
//创建根节点
System.Xml.XmlNode root = doc.CreateNode(System.Xml.XmlNodeType.Element, "w", "wordDocument", "http://schemas.microsoft.com/office/word/2003/2/wordml");
System.Xml.XmlAttribute xa;
xa = doc.CreateAttribute("xmlns", "v", w3NameSpace);
xa.Value = "urn:schemas-microsoft-com:vml";
root.Attributes.Append(xa);
//为节点添加属性
xa = doc.CreateAttribute("xmlns", "w10", w3NameSpace);
xa.Value = "urn:schemas-microsoft-com:office:word";
root.Attributes.Append(xa);
xa = doc.CreateAttribute("xmlns", "SL", w3NameSpace);
xa.Value = "http://schemas.microsoft.com/schemaLibrary/2003/2/core";
root.Attributes.Append(xa);
xa = doc.CreateAttribute("xmlns", "aml", w3NameSpace);
xa.Value = "http://schemas.microsoft.com/aml/2001/core";
root.Attributes.Append(xa);
xa = doc.CreateAttribute("xmlns", "wx", w3NameSpace);
xa.Value = "http://schemas.microsoft.com/office/word/2003/2/auxHint";
root.Attributes.Append(xa);
xa = doc.CreateAttribute("xmlns", "o", w3NameSpace);
xa.Value = "urn:schemas-microsoft-com:office:office";
root.Attributes.Append(xa);
xa = doc.CreateAttribute("xmlns", "dt", w3NameSpace);
xa.Value = "uuid:C2F41010-65B3-11d1-A29F-00AA00C14882";
root.Attributes.Append(xa);
xa = doc.CreateAttribute("xmlns", "space", w3NameSpace);
xa.Value = "preserve";
root.Attributes.Append(xa);
//为节点增加值
System.Xml.XmlNode body = doc.CreateNode(System.Xml.XmlNodeType.Element, "v", "body", "urn:schemas-microsoft-com:vml");
System.Xml.XmlNode childNode = doc.CreateNode(System.Xml.XmlNodeType.Element, "o", "t", "urn:schemas-microsoft-com:office:office");
childNode.InnerText = "欢迎光临【孟宪会之精彩世界】";
//添加到内存树中
body.AppendChild(childNode);
root.AppendChild(body);
doc.AppendChild(root);
//添加节点声明
System.Xml.XmlDeclaration xd = doc.CreateXmlDeclaration("1.0", "UTF-8", "yes");
doc.InsertBefore(xd, doc.DocumentElement);
//添加处理指令
System.Xml.XmlProcessingInstruction spi = doc.CreateProcessingInstruction("mso-application", "progid=\"Word.Document\"");
doc.InsertBefore(spi, doc.DocumentElement);
//查询节点
System.Xml.XmlNamespaceManager nsmanager = new System.Xml.XmlNamespaceManager(doc.NameTable);
nsmanager.AddNamespace("w", "http://schemas.microsoft.com/office/word/2003/2/wordml");
nsmanager.AddNamespace("v", "urn:schemas-microsoft-com:vml");
nsmanager.AddNamespace("o", "urn:schemas-microsoft-com:office:office");
System.Xml.XmlNode node = doc.SelectSingleNode("w:wordDocument/v:body/o:t", nsmanager);
Response.Write(node.InnerText);
node.InnerText = "欢迎光临【孟宪会之精彩世界】:http://dotnet.aspx.cc/";
//创建CDATA节点
System.Xml.XmlCDataSection xcds = doc.CreateCDataSection("<a href='http://dotnet.aspx.cc/'>【孟宪会之精彩世界】</a>");
node.ParentNode.InsertAfter(xcds, node);
Response.Write(xcds.InnerText);
doc.Save(Server.MapPath("test.xml"));
VB.net
Dim w3NameSpace As String = "http://www.w3.org/2000/xmlns/"
Dim doc As New System.Xml.XmlDocument
'创建根节点
Dim root As System.Xml.XmlNode = doc.CreateNode(System.Xml.XmlNodeType.Element, "w", "wordDocument", "http://schemas.microsoft.com/office/word/2003/2/wordml")
Dim xa As System.Xml.XmlAttribute
xa = doc.CreateAttribute("xmlns", "v", w3NameSpace)
xa.Value = "urn:schemas-microsoft-com:vml"
root.Attributes.Append(xa)
'为节点添加属性
xa = doc.CreateAttribute("xmlns", "w10", w3NameSpace)
xa.Value = "urn:schemas-microsoft-com:office:word"
root.Attributes.Append(xa)
xa = doc.CreateAttribute("xmlns", "SL", w3NameSpace)
xa.Value = "http://schemas.microsoft.com/schemaLibrary/2003/2/core"
root.Attributes.Append(xa)
xa = doc.CreateAttribute("xmlns", "aml", w3NameSpace)
xa.Value = "http://schemas.microsoft.com/aml/2001/core"
root.Attributes.Append(xa)
xa = doc.CreateAttribute("xmlns", "wx", w3NameSpace)
xa.Value = "http://schemas.microsoft.com/office/word/2003/2/auxHint"
root.Attributes.Append(xa)
xa = doc.CreateAttribute("xmlns", "o", w3NameSpace)
xa.Value = "urn:schemas-microsoft-com:office:office"
root.Attributes.Append(xa)
xa = doc.CreateAttribute("xmlns", "dt", w3NameSpace)
xa.Value = "uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
root.Attributes.Append(xa)
xa = doc.CreateAttribute("xmlns", "space", w3NameSpace)
xa.Value = "preserve"
root.Attributes.Append(xa)
'为节点增加值
Dim body As System.Xml.XmlNode = doc.CreateNode(System.Xml.XmlNodeType.Element, "v", "body", "urn:schemas-microsoft-com:vml")
Dim childNode As System.Xml.XmlNode = doc.CreateNode(System.Xml.XmlNodeType.Element, "o", "t", "urn:schemas-microsoft-com:office:office")
childNode.InnerText = "欢迎光临【孟宪会之精彩世界】"
'添加到内存树中
body.AppendChild(childNode)
root.AppendChild(body)
doc.AppendChild(root)
'添加节点声明
Dim xd As System.Xml.XmlDeclaration = doc.CreateXmlDeclaration("1.0", "UTF-8", "yes")
doc.InsertBefore(xd, doc.DocumentElement)
'添加处理指令
Dim spi As System.Xml.XmlProcessingInstruction = doc.CreateProcessingInstruction("mso-application", "progid=""Word.Document""")
doc.InsertBefore(spi, doc.DocumentElement)
'查询节点
Dim nsmanager As New System.Xml.XmlNamespaceManager(doc.NameTable)
nsmanager.AddNamespace("w", "http://schemas.microsoft.com/office/word/2003/2/wordml")
nsmanager.AddNamespace("v", "urn:schemas-microsoft-com:vml")
nsmanager.AddNamespace("o", "urn:schemas-microsoft-com:office:office")
Dim node As System.Xml.XmlNode = doc.SelectSingleNode("w:wordDocument/v:body/o:t", nsmanager)
Response.Write(node.InnerText)
node.InnerText = "欢迎光临【孟宪会之精彩世界】:http://dotnet.aspx.cc/"
'创建CDATA节点
Dim xcds As System.Xml.XmlCDataSection = doc.CreateCDataSection("<a href='http://dotnet.aspx.cc/'>【孟宪会之精彩世界】</a>")
node.ParentNode.InsertAfter(xcds, node)
Response.Write(xcds.InnerText)
doc.Save(Server.MapPath("test.xml"))
无为清净楼资源网 Design By www.qnjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
无为清净楼资源网 Design By www.qnjia.com
暂无评论...
《魔兽世界》大逃杀!60人新游玩模式《强袭风暴》3月21日上线
暴雪近日发布了《魔兽世界》10.2.6 更新内容,新游玩模式《强袭风暴》即将于3月21 日在亚服上线,届时玩家将前往阿拉希高地展开一场 60 人大逃杀对战。
艾泽拉斯的冒险者已经征服了艾泽拉斯的大地及遥远的彼岸。他们在对抗世界上最致命的敌人时展现出过人的手腕,并且成功阻止终结宇宙等级的威胁。当他们在为即将于《魔兽世界》资料片《地心之战》中来袭的萨拉塔斯势力做战斗准备时,他们还需要在熟悉的阿拉希高地面对一个全新的敌人──那就是彼此。在《巨龙崛起》10.2.6 更新的《强袭风暴》中,玩家将会进入一个全新的海盗主题大逃杀式限时活动,其中包含极高的风险和史诗级的奖励。
《强袭风暴》不是普通的战场,作为一个独立于主游戏之外的活动,玩家可以用大逃杀的风格来体验《魔兽世界》,不分职业、不分装备(除了你在赛局中捡到的),光是技巧和战略的强弱之分就能决定出谁才是能坚持到最后的赢家。本次活动将会开放单人和双人模式,玩家在加入海盗主题的预赛大厅区域前,可以从强袭风暴角色画面新增好友。游玩游戏将可以累计名望轨迹,《巨龙崛起》和《魔兽世界:巫妖王之怒 经典版》的玩家都可以获得奖励。
更新日志
2024年11月17日
2024年11月17日
- 中国武警男声合唱团《辉煌之声1天路》[DTS-WAV分轨]
- 紫薇《旧曲新韵》[320K/MP3][175.29MB]
- 紫薇《旧曲新韵》[FLAC/分轨][550.18MB]
- 周深《反深代词》[先听版][320K/MP3][72.71MB]
- 李佳薇.2024-会发光的【黑籁音乐】【FLAC分轨】
- 后弦.2012-很有爱【天浩盛世】【WAV+CUE】
- 林俊吉.2012-将你惜命命【美华】【WAV+CUE】
- 晓雅《分享》DTS-WAV
- 黑鸭子2008-飞歌[首版][WAV+CUE]
- 黄乙玲1989-水泼落地难收回[日本天龙版][WAV+CUE]
- 周深《反深代词》[先听版][FLAC/分轨][310.97MB]
- 姜育恒1984《什么时候·串起又散落》台湾复刻版[WAV+CUE][1G]
- 那英《如今》引进版[WAV+CUE][1G]
- 蔡幸娟.1991-真的让我爱你吗【飞碟】【WAV+CUE】
- 群星.2024-好团圆电视剧原声带【TME】【FLAC分轨】