如何在vb.net中创建xml文件 [英] how to create xml file in vb.net

查看:235
本文介绍了如何在vb.net中创建xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何在formate下面的vb.net中创建xml文件

< xs:schema attributeformdefault =不合格" xmlns:xs =#unknown">
elementFormDefault ="qualified"
xmlns:xs ="http://www.w3.org/2001/XMLSchema">
< xs:element name ="parent">
< xs:complextype>
< xs:sequence>
< xs:element name ="child">
< xs:complextype>
< xs:sequence>
< xs:element name ="grandchild">
type ="xs:string"/>








how to create xml file in vb.net in below formate

<xs:schema attributeformdefault="unqualified" xmlns:xs="#unknown">
elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="parent">
<xs:complextype>
<xs:sequence>
<xs:element name="child">
<xs:complextype>
<xs:sequence>
<xs:element name="grandchild">
type="xs:string" />






推荐答案

我想最简单的方法是使用内置的文件处理功能:打开文件进行写入,然后准备一个字符串内容并存储到文件中...最后关闭文件...

到目前为止,您尝试过什么?

你在哪里困?

您能对您的问题更具体一点吗?
I guess that the easiest way to do it is to use the built in file handling functions: opening the file for writting, then prepare a string with the contents and store it into the file... and at the end closing the file...

What have you tried till now?

Where are you stuck?

Could you please be a little bit more specific on your problem?


这篇关于如何在vb.net中创建xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆