ReadXmlSchema,ReadXml和WriteXml的最快方法 [英] fastest way to ReadXmlSchema, ReadXml and WriteXml

查看:84
本文介绍了ReadXmlSchema,ReadXml和WriteXml的最快方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我应该使用XML来同步来自不同(VB.NET)
应用程序的数据,我只是想知道哪些Overloads这些功能

(ReadXmlSchema,ReadXml和WriteXml)走得最快?我不认为

ReadXMLSchema会产生很大的不同,但是可能会有很多不同的内容,而且可能会有一些重复的内容。

ReadXml和WriteXml会有所不同。特别是对于大文件/数据表...


我应该使用IO.Stream吗? XmlReader / XmlWriter?


任何帮助都会非常感激!


非常感谢提前,


Pieter

重载:

从指定的Stream读取XML模式到DataSet。

[视觉效果基本]重载Public Sub ReadXmlSchema(Stream)

从指定文件读取XML模式到DataSet。

[Visual Basic]重载公共子ReadXmlSchema(String)

从指定的TextReader将XML模式读入DataSet。

[Visual Basic]重载Public Sub ReadXmlSchema(TextReader)

从中读取XML模式指定的XmlReader到DataSet中。

[Visual Basic]重载Public Sub ReadXmlSchema(XmlReader)

使用指定的<将XML模式和数据读入DataSet br />
System.IO.Stream。

[Visual Basic]重载公共函数ReadXml(Stream)作为XmlReadMode

读取XML模式和d使用指定文件进入DataSet。

[Visual Basic]重载公共函数ReadXml(String)作为XmlReadMode

使用指定的<读取XML模式和数据到DataSet中br />
System.IO.TextReader。

[Visual Basic]重载公共函数ReadXml(TextReader)作为XmlReadMode

将XML模式和数据读入DataSet使用指定的

System.Xml.XmlReader。

[Visual Basic]重载公共函数ReadXml(XmlReader)作为XmlReadMode

读取XML模式和数据使用指定的

System.IO.Stream和XmlReadMode进入DataSet。

[Visual Basic]重载公共函数ReadXml(Stream,XmlReadMode)作为

XmlReadMode

使用指定的文件将XML模式和数据读入DataSet和

XmlReadMode。

[Visual Basic]重载公共函数ReadXml(String,XmlReadMode)As

XmlReadMode

将XML模式和数据读入t他使用指定的

System.IO.TextReader和XmlReadMode进行DataSet。

[Visual Basic]重载公共函数ReadXml(TextReader,XmlReadMode)As

XmlReadMode

使用指定的

System.Xml.XmlReader和XmlReadMode将XML模式和数据读入DataSet。

[Visual Basic]重载公共函数ReadXml(XmlReader,XmlReadMode)As

XmlReadMode

使用指定的

System.IO.Stream写入DataSet的当前数据。

[Visual Basic]重载Public Sub WriteXml(Stream)

将DataSet的当前数据写入指定文件。

[Visual Basic ]重载Public Sub WriteXml(String)

使用指定的TextWriter写入DataSet的当前数据。

[Visual Basic]重载Public Sub WriteXml(TextWriter)

将DataSet的当前数据写入指定的XmlWriter。

[Visual Basic]重载公共S ub WriteXml(XmlWriter)

使用指定的System.IO.Stream和XmlWriteMode,使用

为DataSet写入当前数据和可选的模式。要编写模式,请将

的XMLWriteMode参数值设置为WriteSchema。

[Visual Basic]重载Public Sub WriteXml(Stream,XmlWriteMode)

使用指定的XmlWriteMode将DataSet的当前数据和可选的模式写入

指定的文件。要编写模式,请将

的XMLWriteMode参数值设置为WriteSchema。

[Visual Basic]重载Public Sub WriteXml(String,XmlWriteMode)

使用

指定的TextWriter和XmlWriteMode为DataSet写入当前数据和可选的模式。要编写模式,请将XMLWriteMode参数的

值设置为WriteSchema。

[Visual Basic]重载Public Sub WriteXml(TextWriter,XmlWriteMode)

使用指定的XmlWriter和XmlWriteMode,使用

为DataSet写入当前数据和可选的模式。要编写模式,请将XMLWriteMode参数的值

设置为WriteSchema。

[Visual Basic]重载Public Sub WriteXml(XmlWriter,XmlWriteMode)

解决方案

最简单的方法是尝试它们。

" DraguVaso" < PI ********** @ hotmail.com>在消息中写道

news:42 *********************** @ news.skynet.be ...



我应该使用XML来同步来自不同(VB.NET)应用程序的数据,我只是想知道这些函数的哪些重载
( ReadXmlSchema,ReadXml和WriteXml)最快?我不认为
ReadXMLSchema会产生很大的不同,但也许是ReadXml和WriteXml的重叠。特别是对于大文件/数据表...

我应该使用IO.Stream吗? XmlReader / XmlWriter?

任何帮助都会非常感激!

非常感谢提前,

Pieter

重载:

将XML模式从指定的Stream读入DataSet。
[Visual Basic]重载Public Sub ReadXmlSchema(Stream)
从指定的XML模式中读取XML模式将文件放入DataSet。
[Visual Basic]重载Public Sub ReadXmlSchema(String)
将XML模式从指定的TextReader读入DataSet。
[Visual Basic]重载Public Sub ReadXmlSchema(TextReader) )
从指定的XmlReader读取XML模式到DataSet。
[Visual Basic]重载Public Sub ReadXmlSchema(XmlReader)

使用XML将XML模式和数据读入DataSet指定
System.IO.Stream。
[Visual Basic]重载公共函数ReadXml(Stream)作为XmlReadMode
使用指定的文件将XML模式和数据读入DataSet。
[ Visual Basic]重载P. ublic函数ReadXml(String)作为XmlReadMode
使用指定的System.IO.TextReader将XML模式和数据读入DataSet。
[Visual Basic]重载公共函数ReadXml(TextReader)As
XmlReadMode
使用指定的System.Xml.XmlReader将XML模式和数据读入DataSet。
[Visual Basic]重载公共函数ReadXml(XmlReader)作为XmlReadMode
使用指定的System.IO.Stream和XmlReadMode将XML模式和数据读入DataSet。
[Visual Basic]重载公共函数ReadXml(Stream,XmlReadMode)作为XmlReadMode
使用指定的文件和/或XmlReadMode将XML模式和数据读入DataSet。
[Visual Basic]重载公共函数ReadXml(String,XmlReadMode)作为XmlReadMode
读取XML模式和使用指定的System.IO.TextReader和XmlReadMode将数据导入DataSet。
[Visual Basic]重载公共函数ReadXml(TextReader,XmlReadMode) )
作为XmlReadMode
使用指定的
System.Xml.XmlReader和XmlReadMode将XML模式和数据读入DataSet。
[Visual Basic]重载公共函数ReadXml (XmlReader,XmlReadMode)
As
XmlReadMode

使用指定的
System.IO.Stream写入DataSet的当前数据。
[Visual Basic ]重载Public Sub WriteXml(Stream)
将DataSet的当前数据写入指定的文件。
[Visual Basic]重载Public Sub WriteXml(String)
为DataSet写入当前数据使用指定的TextWriter。
[Visual Basic]重载Public Sub WriteXml(TextWriter)
将DataSet的当前数据写入指定的XmlWriter。
[Visual Basic]重载Public Sub WriteXml(XmlWriter) )
使用指定的System.IO.Stream和XmlWriteMode为DataSet写入当前数据和可选的模式。要编写模式,请将XMLWriteMode参数的值设置为WriteSchema。
[Visual Basic]重载Public Sub WriteXml(Stream,XmlWriteMode)
写入当前数据,以及可选的模式,使用指定的XmlWriteMode将DataSet指向
指定的文件。要编写模式,请将XMLWriteMode参数的值设置为WriteSchema。
[Visual Basic]重载Public Sub WriteXml(String,XmlWriteMode)
写入当前数据,以及可选的模式,对于DataSet使用指定的TextWriter和XmlWriteMode。要编写模式,请将XMLWriteMode参数的
值设置为WriteSchema。
[Visual Basic]重载Public Sub WriteXml(TextWriter,XmlWriteMode)
写入当前数据,以及可选的模式,对于DataSet使用指定的XmlWriter和XmlWriteMode。要编写模式,请将XMLWriteMode参数的
值设置为WriteSchema。
[Visual Basic]重载Public Sub WriteXml(XmlWriter,XmlWriteMode)



谢谢你,我觉得你睡得不好吗? ;-)


如果有人能给我正确答案,那将会很好:-)我认为

重载公共函数ReadXml(XmlReader, XmlReadMode)As

XmlReadMode"是紧固件,也可能是没有XmlReadMode的紧固件,和使用XmlTextReader的


但是有不同的方法可以打开XmlTextReader,以及不同的方式

用于xmlReadMode等...


所以这使得总共有数百种方法可以做到这一点。所以在另外一个人需要花费很多时间来测试一个。我只是想知道我是一个''正确''的解决方案

那里...


Pieter

" Stephany杨" <没有人@本地>在消息中写道

新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...

最简单找出方法就是尝试它们。

" DraguVaso" < PI ********** @ hotmail.com>在消息中写道
新闻:42 *********************** @ news.skynet.be ...



我应该使用XML来同步来自不同(VB.NET)应用程序的数据,我只是想知道这些
函数的哪些重载(ReadXmlSchema,ReadXml和WriteXml)走得最快?我不认为
ReadXMLSchema会产生很大的不同,但也许是ReadXml和WriteXml的重叠。特别是对于大文件/数据表...

我应该使用IO.Stream吗? XmlReader / XmlWriter?

任何帮助都会非常感激!

非常感谢提前,

Pieter

重载:

将XML模式从指定的Stream读入DataSet。
[Visual Basic]重载Public Sub ReadXmlSchema(Stream)
从指定的XML模式中读取XML模式将文件放入DataSet。
[Visual Basic]重载Public Sub ReadXmlSchema(String)
将XML模式从指定的TextReader读入DataSet。
[Visual Basic]重载Public Sub ReadXmlSchema(TextReader) )
从指定的XmlReader读取XML模式到DataSet。
[Visual Basic]重载Public Sub ReadXmlSchema(XmlReader)

使用XML将XML模式和数据读入DataSet指定
System.IO.Stream。
[Visual Basic]重载公共函数ReadXml(Stream)作为XmlReadMode
使用指定的文件将XML模式和数据读入DataSet。
[ Visual Basic]重载P. ublic函数ReadXml(String)作为XmlReadMode
使用指定的System.IO.TextReader将XML模式和数据读入DataSet。
[Visual Basic]重载公共函数ReadXml(TextReader)As
XmlReadMode
使用指定的System.Xml.XmlReader将XML模式和数据读入DataSet。
[Visual Basic]重载公共函数ReadXml(XmlReader)As
XmlReadMode使用指定的System.IO.Stream和XmlReadMode将XML模式和数据读入DataSet。
[Visual Basic]重载公共函数ReadXml(Stream,XmlReadMode)作为XmlReadMode
使用指定的文件和/或XmlReadMode将XML模式和数据读入DataSet。
[Visual Basic]重载公共函数ReadXml(String,XmlReadMode)作为XmlReadMode
读取XML模式和使用指定的System.IO.TextReader和XmlReadMode将数据导入DataSet。
[Visual Basic]重载公共函数ReadXml(TextReader,
XmlRead模式)作为XmlReadMode
使用指定的
System.Xml.XmlReader和XmlReadMode将XML模式和数据读入DataSet。
[Visual Basic]重载公共函数ReadXml(XmlReader, XmlReadMode)
作为XmlReadMode

使用指定的
System.IO.Stream写入DataSet的当前数据。
[Visual Basic] Overloads Public Sub WriteXml(Stream)
将DataSet的当前数据写入指定的文件。
[Visual Basic]重载Public Sub WriteXml(String)
使用指定的数据写入DataSet的当前数据TextWriter。
[Visual Basic]重载Public Sub WriteXml(TextWriter)
将DataSet的当前数据写入指定的XmlWriter。
[Visual Basic]重载Public Sub WriteXml(XmlWriter)写入当前数据和可选的模式。要编写模式,
将XMLWriteMode参数的值设置为WriteSchema。
[Visual Basic]重载Public Sub WriteXml(Stream,XmlWriteMode)
写入当前数据,以及可选的模式,使用指定的XmlWriteMode将DataSet转换为
指定的文件。要编写模式,
将XMLWriteMode参数的值设置为WriteSchema。
[Visual Basic]重载Public Sub WriteXml(String,XmlWriteMode)
写入当前数据,以及可选的模式,使用指定的TextWriter和XmlWriteMode获取DataSet
。要编写模式,请将XMLWriteMode参数的
值设置为WriteSchema。
[Visual Basic]重载Public Sub WriteXml(TextWriter,XmlWriteMode)
写入当前数据,以及可选的模式,使用指定的XmlWriter和XmlWriteMode获取DataSet
。要编写模式,请将XMLWriteMode参数的
值设置为WriteSchema。
[Visual Basic]重载Public Sub WriteXml(XmlWriter,XmlWriteMode)




所以你希望别人为你试试并报告回来?


如果你是懒得尝试写几行代码并自己尝试一下,然后你就不会学到太多东西了。

DraguVaso < PI ********** @ hotmail.com>在消息中写道

news:42 ********************* @ news.skynet.be ...


如果有人能给我正确的答案,那将是很好的:-)我认为重载公共函数ReadXml(XmlReader,XmlReadMode)作为
XmlReadMode ;是紧固件,也可能是没有XmlReadMode的紧固件,并且使用XmlTextReader。
但是有不同的方法来打开XmlTextReader,以及xmlReadMode的不同方式等等......

所以这使得总共有数百种方法可以做到这一点。所以在另一个之后测试一个会花费很多时间。我只是想知道那里是一个''正确''的解决方案
在那里......

$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ <没有人@本地>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...

查找最简单的方法试试吧。

" DraguVaso" < PI ********** @ hotmail.com>在消息中写道
新闻:42 *********************** @ news.skynet.be ...

>
>
>我应该使用XML来同步来自不同的数据(VB.NET)
>应用程序,我只是想知道这些函数的哪些重载> (ReadXmlSchema,ReadXml和WriteXml)最快?我不认为> ReadXMLSchema会带来很多不同,但也许重叠
>
> ReadXml和WriteXml会。特别是对于大文件/数据表...
>
>我应该使用IO.Stream吗? XmlReader / XmlWriter?
>
>任何帮助将非常感谢!
>
>非常感谢,
>
>彼得
>
>
>重载:
>
>将XML模式从指定的Stream读入DataSet。
> [Visual Basic]重载Public Sub ReadXmlSchema(Stream)
>将XML模式从指定文件读入DataSet。
> [Visual Basic]重载Public Sub ReadXmlSchema(String)
>将XML模式从指定的TextReader读入DataSet。
> [Visual Basic]重载Public Sub ReadXmlSchema(TextReader)
>将XML模式从指定的XmlReader读入DataSet。
> [Visual Basic]重载Public Sub ReadXmlSchema(XmlReader)
>
>使用指定的
>将XML模式和数据读入DataSet。 System.IO.Stream。
> [Visual Basic]重载公共函数ReadXml(Stream)As XmlReadMode
>使用指定的文件将XML模式和数据读入DataSet。
> [Visual Basic]重载公共函数ReadXml(String)As XmlReadMode
>使用指定的
>将XML模式和数据读入DataSet。 System.IO.TextReader。
> [Visual Basic]重载公共函数ReadXml(TextReader)作为
> XmlReadMode
>使用指定的
>将XML模式和数据读入DataSet。 System.Xml.XmlReader。
> [Visual Basic]重载公共函数ReadXml(XmlReader)作为XmlReadMode>使用指定的
>将XML模式和数据读入DataSet。 System.IO.Stream和XmlReadMode。
> [Visual Basic]重载公共函数ReadXml(Stream,XmlReadMode)
>作为
> XmlReadMode
>使用指定的文件将XML模式和数据读入DataSet,
> XmlReadMode。
> [Visual Basic]重载公共函数ReadXml(String,XmlReadMode)
>作为
> XmlReadMode
>使用指定的
>将XML模式和数据读入DataSet。 System.IO.TextReader和XmlReadMode。
> [Visual Basic]重载公共函数ReadXml(TextReader,XmlReadMode)>作为
> XmlReadMode
>使用指定的
>将XML模式和数据读入DataSet。 System.Xml.XmlReader和XmlReadMode。
> [Visual Basic]重载公共函数ReadXml(XmlReader,
> XmlReadMode)
>作为
> XmlReadMode
>
>
>使用指定的
>写入DataSet的当前数据。 System.IO.Stream。
> [Visual Basic]重载Public Sub WriteXml(Stream)
>将DataSet的当前数据写入指定的文件。
> [Visual Basic]重载Public Sub WriteXml(String)
>使用指定的TextWriter写入DataSet的当前数据。
> [Visual Basic]重载Public Sub WriteXml(TextWriter)
>将DataSet的当前数据写入指定的XmlWriter。
> [Visual Basic]重载Public Sub WriteXml(XmlWriter)
>使用>写入DataSet的当前数据和可选的模式。指定的System.IO.Stream和XmlWriteMode。要编写架构,请设置> WriteWchema的XMLWriteMode参数的值。
> [Visual Basic]重载Public Sub WriteXml(Stream,XmlWriteMode)
>将DataSet的当前数据和可选的模式写入>使用指定的XmlWriteMode指定的文件。要编写架构,请设置> WriteWchema的XMLWriteMode参数的值。
> [Visual Basic]重载Public Sub WriteXml(String,XmlWriteMode)
>使用>写入DataSet的当前数据和可选的模式。指定的TextWriter和XmlWriteMode。要编写架构,请设置
> WriteWchema的XMLWriteMode参数的值。
> [Visual Basic]重载Public Sub WriteXml(TextWriter,XmlWriteMode)
>使用>写入DataSet的当前数据和可选的模式。指定的XmlWriter和XmlWriteMode。要编写架构,请设置
>价值
>对于WriteSchema的XMLWriteMode参数。
> [Visual Basic]重载Public Sub WriteXml(XmlWriter,XmlWriteMode)
>
>
>





Hi,

I should use XML to synchronize the data from different (VB.NET)
applications, and I was just wondering which Overloads of these functions
( ReadXmlSchema, ReadXml and WriteXml) goes the fastest? I don''t think the
ReadXMLSchema would give a lot of difference, but maybe the overlaods of
ReadXml and WriteXml will. Especially with larges files/datatables...

Should I use the IO.Stream? The XmlReader/XmlWriter?

Any help would be really appreciated!

Thanks a lot in advance,

Pieter
The overloads:

Reads the XML schema from the specified Stream into the DataSet.
[Visual Basic] Overloads Public Sub ReadXmlSchema(Stream)
Reads the XML schema from the specified file into the DataSet.
[Visual Basic] Overloads Public Sub ReadXmlSchema(String)
Reads the XML schema from the specified TextReader into the DataSet.
[Visual Basic] Overloads Public Sub ReadXmlSchema(TextReader)
Reads the XML schema from the specified XmlReader into the DataSet.
[Visual Basic] Overloads Public Sub ReadXmlSchema(XmlReader)

Reads XML schema and data into the DataSet using the specified
System.IO.Stream.
[Visual Basic] Overloads Public Function ReadXml(Stream) As XmlReadMode
Reads XML schema and data into the DataSet using the specified file.
[Visual Basic] Overloads Public Function ReadXml(String) As XmlReadMode
Reads XML schema and data into the DataSet using the specified
System.IO.TextReader.
[Visual Basic] Overloads Public Function ReadXml(TextReader) As XmlReadMode
Reads XML schema and data into the DataSet using the specified
System.Xml.XmlReader.
[Visual Basic] Overloads Public Function ReadXml(XmlReader) As XmlReadMode
Reads XML schema and data into the DataSet using the specified
System.IO.Stream and XmlReadMode.
[Visual Basic] Overloads Public Function ReadXml(Stream, XmlReadMode) As
XmlReadMode
Reads XML schema and data into the DataSet using the specified file and
XmlReadMode.
[Visual Basic] Overloads Public Function ReadXml(String, XmlReadMode) As
XmlReadMode
Reads XML schema and data into the DataSet using the specified
System.IO.TextReader and XmlReadMode.
[Visual Basic] Overloads Public Function ReadXml(TextReader, XmlReadMode) As
XmlReadMode
Reads XML schema and data into the DataSet using the specified
System.Xml.XmlReader and XmlReadMode.
[Visual Basic] Overloads Public Function ReadXml(XmlReader, XmlReadMode) As
XmlReadMode
Writes the current data for the DataSet using the specified
System.IO.Stream.
[Visual Basic] Overloads Public Sub WriteXml(Stream)
Writes the current data for the DataSet to the specified file.
[Visual Basic] Overloads Public Sub WriteXml(String)
Writes the current data for the DataSet using the specified TextWriter.
[Visual Basic] Overloads Public Sub WriteXml(TextWriter)
Writes the current data for the DataSet to the specified XmlWriter.
[Visual Basic] Overloads Public Sub WriteXml(XmlWriter)
Writes the current data, and optionally the schema, for the DataSet using
the specified System.IO.Stream and XmlWriteMode. To write the schema, set
the value for the XMLWriteMode parameter to WriteSchema.
[Visual Basic] Overloads Public Sub WriteXml(Stream, XmlWriteMode)
Writes the current data, and optionally the schema, for the DataSet to the
specified file using the specified XmlWriteMode. To write the schema, set
the value for the XMLWriteMode parameter to WriteSchema.
[Visual Basic] Overloads Public Sub WriteXml(String, XmlWriteMode)
Writes the current data, and optionally the schema, for the DataSet using
the specified TextWriter and XmlWriteMode. To write the schema, set the
value for the XMLWriteMode parameter to WriteSchema.
[Visual Basic] Overloads Public Sub WriteXml(TextWriter, XmlWriteMode)
Writes the current data, and optionally the schema, for the DataSet using
the specified XmlWriter and XmlWriteMode. To write the schema, set the value
for the XMLWriteMode parameter to WriteSchema.
[Visual Basic] Overloads Public Sub WriteXml(XmlWriter, XmlWriteMode)

解决方案

The easiest way to find out is try them.
"DraguVaso" <pi**********@hotmail.com> wrote in message
news:42***********************@news.skynet.be...

Hi,

I should use XML to synchronize the data from different (VB.NET)
applications, and I was just wondering which Overloads of these functions
( ReadXmlSchema, ReadXml and WriteXml) goes the fastest? I don''t think the
ReadXMLSchema would give a lot of difference, but maybe the overlaods of
ReadXml and WriteXml will. Especially with larges files/datatables...

Should I use the IO.Stream? The XmlReader/XmlWriter?

Any help would be really appreciated!

Thanks a lot in advance,

Pieter
The overloads:

Reads the XML schema from the specified Stream into the DataSet.
[Visual Basic] Overloads Public Sub ReadXmlSchema(Stream)
Reads the XML schema from the specified file into the DataSet.
[Visual Basic] Overloads Public Sub ReadXmlSchema(String)
Reads the XML schema from the specified TextReader into the DataSet.
[Visual Basic] Overloads Public Sub ReadXmlSchema(TextReader)
Reads the XML schema from the specified XmlReader into the DataSet.
[Visual Basic] Overloads Public Sub ReadXmlSchema(XmlReader)

Reads XML schema and data into the DataSet using the specified
System.IO.Stream.
[Visual Basic] Overloads Public Function ReadXml(Stream) As XmlReadMode
Reads XML schema and data into the DataSet using the specified file.
[Visual Basic] Overloads Public Function ReadXml(String) As XmlReadMode
Reads XML schema and data into the DataSet using the specified
System.IO.TextReader.
[Visual Basic] Overloads Public Function ReadXml(TextReader) As
XmlReadMode
Reads XML schema and data into the DataSet using the specified
System.Xml.XmlReader.
[Visual Basic] Overloads Public Function ReadXml(XmlReader) As XmlReadMode
Reads XML schema and data into the DataSet using the specified
System.IO.Stream and XmlReadMode.
[Visual Basic] Overloads Public Function ReadXml(Stream, XmlReadMode) As
XmlReadMode
Reads XML schema and data into the DataSet using the specified file and
XmlReadMode.
[Visual Basic] Overloads Public Function ReadXml(String, XmlReadMode) As
XmlReadMode
Reads XML schema and data into the DataSet using the specified
System.IO.TextReader and XmlReadMode.
[Visual Basic] Overloads Public Function ReadXml(TextReader, XmlReadMode)
As
XmlReadMode
Reads XML schema and data into the DataSet using the specified
System.Xml.XmlReader and XmlReadMode.
[Visual Basic] Overloads Public Function ReadXml(XmlReader, XmlReadMode)
As
XmlReadMode
Writes the current data for the DataSet using the specified
System.IO.Stream.
[Visual Basic] Overloads Public Sub WriteXml(Stream)
Writes the current data for the DataSet to the specified file.
[Visual Basic] Overloads Public Sub WriteXml(String)
Writes the current data for the DataSet using the specified TextWriter.
[Visual Basic] Overloads Public Sub WriteXml(TextWriter)
Writes the current data for the DataSet to the specified XmlWriter.
[Visual Basic] Overloads Public Sub WriteXml(XmlWriter)
Writes the current data, and optionally the schema, for the DataSet using
the specified System.IO.Stream and XmlWriteMode. To write the schema, set
the value for the XMLWriteMode parameter to WriteSchema.
[Visual Basic] Overloads Public Sub WriteXml(Stream, XmlWriteMode)
Writes the current data, and optionally the schema, for the DataSet to the
specified file using the specified XmlWriteMode. To write the schema, set
the value for the XMLWriteMode parameter to WriteSchema.
[Visual Basic] Overloads Public Sub WriteXml(String, XmlWriteMode)
Writes the current data, and optionally the schema, for the DataSet using
the specified TextWriter and XmlWriteMode. To write the schema, set the
value for the XMLWriteMode parameter to WriteSchema.
[Visual Basic] Overloads Public Sub WriteXml(TextWriter, XmlWriteMode)
Writes the current data, and optionally the schema, for the DataSet using
the specified XmlWriter and XmlWriteMode. To write the schema, set the
value
for the XMLWriteMode parameter to WriteSchema.
[Visual Basic] Overloads Public Sub WriteXml(XmlWriter, XmlWriteMode)



Thanks, you didn''t sleep too well thisn ight I guess? ;-)

It would jsut be nice if anybody couldgive me tha right answer :-) I think
the "Overloads Public Function ReadXml(XmlReader, XmlReadMode) As
XmlReadMode" is the fastets, ot maybe the one without the XmlReadMode, and
using a XmlTextReader.
But there are different ways to open the XmlTextReader, and different ways
for the xmlReadMode, etc...

So this makes the total to hundreds of ways to do it. so testing one after
another would take to much time. I just hink there mya be a ''right'' solution
out there...

Pieter
"Stephany Young" <noone@localhost> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

The easiest way to find out is try them.
"DraguVaso" <pi**********@hotmail.com> wrote in message
news:42***********************@news.skynet.be...

Hi,

I should use XML to synchronize the data from different (VB.NET)
applications, and I was just wondering which Overloads of these functions ( ReadXmlSchema, ReadXml and WriteXml) goes the fastest? I don''t think the ReadXMLSchema would give a lot of difference, but maybe the overlaods of
ReadXml and WriteXml will. Especially with larges files/datatables...

Should I use the IO.Stream? The XmlReader/XmlWriter?

Any help would be really appreciated!

Thanks a lot in advance,

Pieter
The overloads:

Reads the XML schema from the specified Stream into the DataSet.
[Visual Basic] Overloads Public Sub ReadXmlSchema(Stream)
Reads the XML schema from the specified file into the DataSet.
[Visual Basic] Overloads Public Sub ReadXmlSchema(String)
Reads the XML schema from the specified TextReader into the DataSet.
[Visual Basic] Overloads Public Sub ReadXmlSchema(TextReader)
Reads the XML schema from the specified XmlReader into the DataSet.
[Visual Basic] Overloads Public Sub ReadXmlSchema(XmlReader)

Reads XML schema and data into the DataSet using the specified
System.IO.Stream.
[Visual Basic] Overloads Public Function ReadXml(Stream) As XmlReadMode
Reads XML schema and data into the DataSet using the specified file.
[Visual Basic] Overloads Public Function ReadXml(String) As XmlReadMode
Reads XML schema and data into the DataSet using the specified
System.IO.TextReader.
[Visual Basic] Overloads Public Function ReadXml(TextReader) As
XmlReadMode
Reads XML schema and data into the DataSet using the specified
System.Xml.XmlReader.
[Visual Basic] Overloads Public Function ReadXml(XmlReader) As XmlReadMode Reads XML schema and data into the DataSet using the specified
System.IO.Stream and XmlReadMode.
[Visual Basic] Overloads Public Function ReadXml(Stream, XmlReadMode) As
XmlReadMode
Reads XML schema and data into the DataSet using the specified file and
XmlReadMode.
[Visual Basic] Overloads Public Function ReadXml(String, XmlReadMode) As
XmlReadMode
Reads XML schema and data into the DataSet using the specified
System.IO.TextReader and XmlReadMode.
[Visual Basic] Overloads Public Function ReadXml(TextReader, XmlReadMode) As
XmlReadMode
Reads XML schema and data into the DataSet using the specified
System.Xml.XmlReader and XmlReadMode.
[Visual Basic] Overloads Public Function ReadXml(XmlReader, XmlReadMode)
As
XmlReadMode
Writes the current data for the DataSet using the specified
System.IO.Stream.
[Visual Basic] Overloads Public Sub WriteXml(Stream)
Writes the current data for the DataSet to the specified file.
[Visual Basic] Overloads Public Sub WriteXml(String)
Writes the current data for the DataSet using the specified TextWriter.
[Visual Basic] Overloads Public Sub WriteXml(TextWriter)
Writes the current data for the DataSet to the specified XmlWriter.
[Visual Basic] Overloads Public Sub WriteXml(XmlWriter)
Writes the current data, and optionally the schema, for the DataSet using the specified System.IO.Stream and XmlWriteMode. To write the schema, set the value for the XMLWriteMode parameter to WriteSchema.
[Visual Basic] Overloads Public Sub WriteXml(Stream, XmlWriteMode)
Writes the current data, and optionally the schema, for the DataSet to the specified file using the specified XmlWriteMode. To write the schema, set the value for the XMLWriteMode parameter to WriteSchema.
[Visual Basic] Overloads Public Sub WriteXml(String, XmlWriteMode)
Writes the current data, and optionally the schema, for the DataSet using the specified TextWriter and XmlWriteMode. To write the schema, set the
value for the XMLWriteMode parameter to WriteSchema.
[Visual Basic] Overloads Public Sub WriteXml(TextWriter, XmlWriteMode)
Writes the current data, and optionally the schema, for the DataSet using the specified XmlWriter and XmlWriteMode. To write the schema, set the
value
for the XMLWriteMode parameter to WriteSchema.
[Visual Basic] Overloads Public Sub WriteXml(XmlWriter, XmlWriteMode)




So you expect others to try it out for you and report back?

If you are too lazy to try write a few lines of code and try it for
yourself, then you aren''t going to learn much.
"DraguVaso" <pi**********@hotmail.com> wrote in message
news:42*********************@news.skynet.be...

Thanks, you didn''t sleep too well thisn ight I guess? ;-)

It would jsut be nice if anybody couldgive me tha right answer :-) I think
the "Overloads Public Function ReadXml(XmlReader, XmlReadMode) As
XmlReadMode" is the fastets, ot maybe the one without the XmlReadMode, and
using a XmlTextReader.
But there are different ways to open the XmlTextReader, and different ways
for the xmlReadMode, etc...

So this makes the total to hundreds of ways to do it. so testing one after
another would take to much time. I just hink there mya be a ''right''
solution
out there...

Pieter
"Stephany Young" <noone@localhost> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

The easiest way to find out is try them.
"DraguVaso" <pi**********@hotmail.com> wrote in message
news:42***********************@news.skynet.be...

> Hi,
>
> I should use XML to synchronize the data from different (VB.NET)
> applications, and I was just wondering which Overloads of these functions > ( ReadXmlSchema, ReadXml and WriteXml) goes the fastest? I don''t think the > ReadXMLSchema would give a lot of difference, but maybe the overlaods
> of
> ReadXml and WriteXml will. Especially with larges files/datatables...
>
> Should I use the IO.Stream? The XmlReader/XmlWriter?
>
> Any help would be really appreciated!
>
> Thanks a lot in advance,
>
> Pieter
>
>
> The overloads:
>
> Reads the XML schema from the specified Stream into the DataSet.
> [Visual Basic] Overloads Public Sub ReadXmlSchema(Stream)
> Reads the XML schema from the specified file into the DataSet.
> [Visual Basic] Overloads Public Sub ReadXmlSchema(String)
> Reads the XML schema from the specified TextReader into the DataSet.
> [Visual Basic] Overloads Public Sub ReadXmlSchema(TextReader)
> Reads the XML schema from the specified XmlReader into the DataSet.
> [Visual Basic] Overloads Public Sub ReadXmlSchema(XmlReader)
>
> Reads XML schema and data into the DataSet using the specified
> System.IO.Stream.
> [Visual Basic] Overloads Public Function ReadXml(Stream) As XmlReadMode
> Reads XML schema and data into the DataSet using the specified file.
> [Visual Basic] Overloads Public Function ReadXml(String) As XmlReadMode
> Reads XML schema and data into the DataSet using the specified
> System.IO.TextReader.
> [Visual Basic] Overloads Public Function ReadXml(TextReader) As
> XmlReadMode
> Reads XML schema and data into the DataSet using the specified
> System.Xml.XmlReader.
> [Visual Basic] Overloads Public Function ReadXml(XmlReader) As XmlReadMode > Reads XML schema and data into the DataSet using the specified
> System.IO.Stream and XmlReadMode.
> [Visual Basic] Overloads Public Function ReadXml(Stream, XmlReadMode)
> As
> XmlReadMode
> Reads XML schema and data into the DataSet using the specified file and
> XmlReadMode.
> [Visual Basic] Overloads Public Function ReadXml(String, XmlReadMode)
> As
> XmlReadMode
> Reads XML schema and data into the DataSet using the specified
> System.IO.TextReader and XmlReadMode.
> [Visual Basic] Overloads Public Function ReadXml(TextReader, XmlReadMode) > As
> XmlReadMode
> Reads XML schema and data into the DataSet using the specified
> System.Xml.XmlReader and XmlReadMode.
> [Visual Basic] Overloads Public Function ReadXml(XmlReader,
> XmlReadMode)
> As
> XmlReadMode
>
>
> Writes the current data for the DataSet using the specified
> System.IO.Stream.
> [Visual Basic] Overloads Public Sub WriteXml(Stream)
> Writes the current data for the DataSet to the specified file.
> [Visual Basic] Overloads Public Sub WriteXml(String)
> Writes the current data for the DataSet using the specified TextWriter.
> [Visual Basic] Overloads Public Sub WriteXml(TextWriter)
> Writes the current data for the DataSet to the specified XmlWriter.
> [Visual Basic] Overloads Public Sub WriteXml(XmlWriter)
> Writes the current data, and optionally the schema, for the DataSet using > the specified System.IO.Stream and XmlWriteMode. To write the schema, set > the value for the XMLWriteMode parameter to WriteSchema.
> [Visual Basic] Overloads Public Sub WriteXml(Stream, XmlWriteMode)
> Writes the current data, and optionally the schema, for the DataSet to the > specified file using the specified XmlWriteMode. To write the schema, set > the value for the XMLWriteMode parameter to WriteSchema.
> [Visual Basic] Overloads Public Sub WriteXml(String, XmlWriteMode)
> Writes the current data, and optionally the schema, for the DataSet using > the specified TextWriter and XmlWriteMode. To write the schema, set the
> value for the XMLWriteMode parameter to WriteSchema.
> [Visual Basic] Overloads Public Sub WriteXml(TextWriter, XmlWriteMode)
> Writes the current data, and optionally the schema, for the DataSet using > the specified XmlWriter and XmlWriteMode. To write the schema, set the
> value
> for the XMLWriteMode parameter to WriteSchema.
> [Visual Basic] Overloads Public Sub WriteXml(XmlWriter, XmlWriteMode)
>
>
>





这篇关于ReadXmlSchema,ReadXml和WriteXml的最快方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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