zoukankan
html css js c++ java
xml
<
Login
>
<
id userName
=
"
Tushar
"
passWord
=
"
Tushar
"
>
<
Name
>
Tushar
</
Name
>
<
Age
>
24
</
Age
>
</
id
></
Login
>
Code
using
System;
using
System.Xml;
class
Test{
static
void
Main() { XmlDocument doc
=
new
XmlDocument(); XmlElement root
=
doc.CreateElement(
"
Login
"
); XmlElement id
=
doc.CreateElement(
"
id
"
); id.SetAttribute(
"
userName
"
,
"
Tushar
"
); id.SetAttribute(
"
passWord
"
,
"
Tushar
"
); XmlElement name
=
doc.CreateElement(
"
Name
"
); name.InnerText
=
"
Tushar
"
; XmlElement age
=
doc.CreateElement(
"
Age
"
); age.InnerText
=
"
24
"
; id.AppendChild(name); id.AppendChild(age); root.AppendChild(id); doc.AppendChild(root); doc.Save(
"
test.xml
"
); }}
查看全文
相关阅读:
async 异步协程进阶
linux 磁盘100% 清理
时间戳,日期,string互转
ioutils
logging basic
【BZOJ5323】【JXOI2018】—游戏(组合数学+线性筛)
【BZOJ5323】【JXOI2018】—游戏(组合数学+线性筛)
【CodeChef】—Sum of Cubes(斯特林数+容斥+三元环计数)
【CodeChef】—Sum of Cubes(斯特林数+容斥+三元环计数)
【TopCoder SRM 686】—CyclesNumber(斯特林数)
原文地址:https://www.cnblogs.com/lixinsheng/p/1494800.html
最新文章
BZOJ 2060: [Usaco2010 Nov]Visiting Cows 拜访奶牛( dp )
C++
LibreOJ10091
IELTS
IELTS
IELTS
IELTS
IELTS
IELTS
IELTS
热门文章
JS 插件 fastclick.js 解决手机端click点击延迟
教你如何爬手机页面
在jsp页面如何获得url参数(转)
js解析JSON字符串为一个对象
cookie 页面缓存(存储数据)
mutiprocessing 同步类型,如锁,条件和队列官方案例:
解决async 运行多线程时报错RuntimeError: There is no current event loop in thread 'Thread-2'
queue 官方运用
async+队列queue.Queue()
concurrent.futures模块
Copyright © 2011-2022 走看看