Large Size XML files for data transfer

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Large Size XML files for data transfer

    Hi,
    Need some advice with regards to XML files. Here is what I am trying to
    achieve:

    I have an SQL Server 7.0 database and a Web service running on a Windows
    2003 enterprise machine (for development). The web service (developed using
    VB.NET) creates an XML file which contains most of the database table. The
    creation of this file takes less then couple of minutes. This XML is about
    57 MB in size and is used to build a local database. The file is then zipped
    to about 2.5 MB and sent to the calling application.

    On the client the file is unzipped to 57 MB file, before the application
    starts reading it. I am using the load method of the DOM object model to
    check whether it is a well formed XML. The problem starts as soon as I try
    to load this XML file. The client machine becomes unresponsive for a long
    time and the whole process from there on is very slow as I assume that the
    XML is loaded into memory while it is parsed. I have to read the whole XML
    file and do not need to search for any nodes/tags inside the XML.

    I would like to know whether it is right to use XML in this scenario? Am I
    better off by generating a simple delimited file instead of an XML file? The
    size of the XML file is at least 3 folds as compared to any other delimited
    file.

    Any advice in this regard will be helpful.

    Thanks and regards,

    RAJ


    RAJ Guest

  2. Similar Questions and Discussions

    1. Very Large Artboard / Document Size Problems and large content size
      Hi, Im currently trying to create a design for a box that is 18" X 18" X 18". I have never worked on anything this large before. THe image is...
    2. Large file size when saving Illustrator CS 11 Files
      I recently installed Illustrator CS (ver.11) on OS 10.3.3 Panther. I'm running a G5 with lots of RAM. When I re-save my Illustrator 8 and 10 files in...
    3. Screen Ready PDF files are too large in size! Why?
      I'm trying to save a 8.5 x 11 'screen ready pdf' in illustrator and the file size is hugh, like 20 megs! I place the same file in InDesign and save a...
    4. Illustrator CS files with large linked files results in large file size
      If I place a large linked Photoshop 7 file (.psd or.eps), say 36 MB, in Illustrator CS and save without embedding the file it takes ages to save and...
    5. How to transfer data files...
      I need help on file transfers, to and from, web servers to remote user computers. If anyone knows of a good reference I'd appreciate the tip. If...
  3. #2

    Default Re: Large Size XML files for data transfer


    "RAJ" <anonymous@discussions.microsoft.com> сообщил/сообщила в новостях
    следующее: news:#HTqv9OZEHA.3132@TK2MSFTNGP10.phx.gbl...
    > Hi,
    > Need some advice with regards to XML files. Here is what I am trying to
    > achieve:
    >
    > I have an SQL Server 7.0 database and a Web service running on a Windows
    > 2003 enterprise machine (for development). The web service (developed
    using
    > VB.NET) creates an XML file which contains most of the database table. The
    > creation of this file takes less then couple of minutes. This XML is about
    > 57 MB in size and is used to build a local database. The file is then
    zipped
    > to about 2.5 MB and sent to the calling application.
    >
    > On the client the file is unzipped to 57 MB file, before the application
    > starts reading it. I am using the load method of the DOM object model to
    > check whether it is a well formed XML. The problem starts as soon as I try
    > to load this XML file. The client machine becomes unresponsive for a long
    > time and the whole process from there on is very slow as I assume that the
    > XML is loaded into memory while it is parsed. I have to read the whole XML
    > file and do not need to search for any nodes/tags inside the XML.
    Use asynhrone calls of web service methods for avoid unresponsive
    application.
    > I would like to know whether it is right to use XML in this scenario? Am I
    > better off by generating a simple delimited file instead of an XML file?
    The
    > size of the XML file is at least 3 folds as compared to any other
    delimited
    > file.
    If u store some table with different structure imho xml file is better
    solution.


    Kondratyev Denis Guest

  4. #3

    Default Re: Large Size XML files for data transfer

    Personally, if you are sending a single table, I would send a flat file of
    some kind - CSV is fine.

    However, if you want to use XML then I would use an XMLReader rather than
    an XMLDocument. This should be dramatically faster (I'm presuming that the
    ultimate database target is NOT an XMLDocument).

    I would be tempted to including the unzipping as part of the reading
    processing by using zlib or something. However, a quick glance at the docs
    suggest this will not be straightforward.

    Iain

    "RAJ" <anonymous@discussions.microsoft.com> wrote in message
    news:#HTqv9OZEHA.3132@TK2MSFTNGP10.phx.gbl...
    > Hi,
    > Need some advice with regards to XML files. Here is what I am trying to
    > achieve:
    >
    > I have an SQL Server 7.0 database and a Web service running on a Windows
    > 2003 enterprise machine (for development). The web service (developed
    using
    > VB.NET) creates an XML file which contains most of the database table. The
    > creation of this file takes less then couple of minutes. This XML is about
    > 57 MB in size and is used to build a local database. The file is then
    zipped
    > to about 2.5 MB and sent to the calling application.
    >
    > On the client the file is unzipped to 57 MB file, before the application
    > starts reading it. I am using the load method of the DOM object model to
    > check whether it is a well formed XML. The problem starts as soon as I try
    > to load this XML file. The client machine becomes unresponsive for a long
    > time and the whole process from there on is very slow as I assume that the
    > XML is loaded into memory while it is parsed. I have to read the whole XML
    > file and do not need to search for any nodes/tags inside the XML.
    >
    > I would like to know whether it is right to use XML in this scenario? Am I
    > better off by generating a simple delimited file instead of an XML file?
    The
    > size of the XML file is at least 3 folds as compared to any other
    delimited
    > file.
    >
    > Any advice in this regard will be helpful.
    >
    > Thanks and regards,
    >
    > RAJ
    >
    >

    Iain Guest

  5. #4

    Default Re: Large Size XML files for data transfer

    Thanks for your reply.
    I am sending a part of the database with a few tables. The advantage of
    using XML is that it is readable. However, I can change it to use either
    tab-separated or CSV format.

    The webservice is called asynchronously with the implementation of Zipping
    and unzipping using third party tool (AbaleZip) at both the webservice and
    client side respectively.

    The problem occurs when I use the load command :
    dim objXML as XMLDocument
    objxml.load(<XML file name>)

    The application hangs when reading the file on the client machine.
    During development however, the load command is successful but then windows
    is out of virtual memory and the reading of the XML file from there on is
    very slow!

    Never used XMLReader before. But it looks like that I have to use it as it
    is a forward only reader which is what I am looking for as I need to read
    whole data sequentially. Will I be able to use it without loading the XML?

    I have already developed both client and web service part and now in the
    process of testing on deployment machine.

    If there are any examples of using XMLReader in VB..NET, it would be helpful

    Thanks for your help.

    Regards,

    RAJ

    "Iain" <idownsXXXX@dircon.co.uk> wrote in message
    news:eNI10SQZEHA.136@TK2MSFTNGP11.phx.gbl...
    > Personally, if you are sending a single table, I would send a flat file of
    > some kind - CSV is fine.
    >
    > However, if you want to use XML then I would use an XMLReader rather than
    > an XMLDocument. This should be dramatically faster (I'm presuming that
    the
    > ultimate database target is NOT an XMLDocument).
    >
    > I would be tempted to including the unzipping as part of the reading
    > processing by using zlib or something. However, a quick glance at the
    docs
    > suggest this will not be straightforward.
    >
    > Iain
    >
    > "RAJ" <anonymous@discussions.microsoft.com> wrote in message
    > news:#HTqv9OZEHA.3132@TK2MSFTNGP10.phx.gbl...
    > > Hi,
    > > Need some advice with regards to XML files. Here is what I am trying to
    > > achieve:
    > >
    > > I have an SQL Server 7.0 database and a Web service running on a Windows
    > > 2003 enterprise machine (for development). The web service (developed
    > using
    > > VB.NET) creates an XML file which contains most of the database table.
    The
    > > creation of this file takes less then couple of minutes. This XML is
    about
    > > 57 MB in size and is used to build a local database. The file is then
    > zipped
    > > to about 2.5 MB and sent to the calling application.
    > >
    > > On the client the file is unzipped to 57 MB file, before the application
    > > starts reading it. I am using the load method of the DOM object model to
    > > check whether it is a well formed XML. The problem starts as soon as I
    try
    > > to load this XML file. The client machine becomes unresponsive for a
    long
    > > time and the whole process from there on is very slow as I assume that
    the
    > > XML is loaded into memory while it is parsed. I have to read the whole
    XML
    > > file and do not need to search for any nodes/tags inside the XML.
    > >
    > > I would like to know whether it is right to use XML in this scenario? Am
    I
    > > better off by generating a simple delimited file instead of an XML file?
    > The
    > > size of the XML file is at least 3 folds as compared to any other
    > delimited
    > > file.
    > >
    > > Any advice in this regard will be helpful.
    > >
    > > Thanks and regards,
    > >
    > > RAJ
    > >
    > >
    >
    >

    RAJ Guest

  6. #5

    Default Re: Large Size XML files for data transfer

    Imho Iain mean XmlTextReader class, becauce XmlReader is abstract class and
    u cant use it for work with XML (rtfm). U can find examples in .NET
    Framework SDK,
    [url]http://msdn.microsoft.com/vcsharp/downloads/samples/23samples/default.aspx[/url] ,
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;301225[/url] or in Google.

    "RAJ" <anonymous@discussions.microsoft.com> сообщил/сообщила в новостях
    следующее: news:eyOAC3QZEHA.1152@TK2MSFTNGP09.phx.gbl...
    > Thanks for your reply.
    > I am sending a part of the database with a few tables. The advantage of
    > using XML is that it is readable. However, I can change it to use either
    > tab-separated or CSV format.
    >
    > The webservice is called asynchronously with the implementation of Zipping
    > and unzipping using third party tool (AbaleZip) at both the webservice and
    > client side respectively.
    >
    > The problem occurs when I use the load command :
    > dim objXML as XMLDocument
    > objxml.load(<XML file name>)
    >
    > The application hangs when reading the file on the client machine.
    > During development however, the load command is successful but then
    windows
    > is out of virtual memory and the reading of the XML file from there on is
    > very slow!
    >
    > Never used XMLReader before. But it looks like that I have to use it as
    it
    > is a forward only reader which is what I am looking for as I need to read
    > whole data sequentially. Will I be able to use it without loading the XML?
    >
    > I have already developed both client and web service part and now in the
    > process of testing on deployment machine.
    >
    > If there are any examples of using XMLReader in VB..NET, it would be
    helpful
    >
    > Thanks for your help.
    >
    > Regards,
    >
    > RAJ

    Kondratyev Denis Guest

  7. #6

    Default Re: Large Size XML files for data transfer

    Thanks a lot. You help is much appreciated.

    regards,
    RAJ

    "Kondratyev Denis" <info@visualdesign.ru> wrote in message
    news:cck9je$jq3$1@news.rol.ru...
    > Imho Iain mean XmlTextReader class, becauce XmlReader is abstract class
    and
    > u cant use it for work with XML (rtfm). U can find examples in .NET
    > Framework SDK,
    > [url]http://msdn.microsoft.com/vcsharp/downloads/samples/23samples/default.aspx[/url]
    ,
    > [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;301225[/url] or in
    Google.
    >
    > "RAJ" <anonymous@discussions.microsoft.com> сообщил/сообщила в новостях
    > следующее: news:eyOAC3QZEHA.1152@TK2MSFTNGP09.phx.gbl...
    > > Thanks for your reply.
    > > I am sending a part of the database with a few tables. The advantage of
    > > using XML is that it is readable. However, I can change it to use
    either
    > > tab-separated or CSV format.
    > >
    > > The webservice is called asynchronously with the implementation of
    Zipping
    > > and unzipping using third party tool (AbaleZip) at both the webservice
    and
    > > client side respectively.
    > >
    > > The problem occurs when I use the load command :
    > > dim objXML as XMLDocument
    > > objxml.load(<XML file name>)
    > >
    > > The application hangs when reading the file on the client machine.
    > > During development however, the load command is successful but then
    > windows
    > > is out of virtual memory and the reading of the XML file from there on
    is
    > > very slow!
    > >
    > > Never used XMLReader before. But it looks like that I have to use it as
    > it
    > > is a forward only reader which is what I am looking for as I need to
    read
    > > whole data sequentially. Will I be able to use it without loading the
    XML?
    > >
    > > I have already developed both client and web service part and now in the
    > > process of testing on deployment machine.
    > >
    > > If there are any examples of using XMLReader in VB..NET, it would be
    > helpful
    > >
    > > Thanks for your help.
    > >
    > > Regards,
    > >
    > > RAJ
    >
    >

    RAJ Guest

  8. #7

    Default Re: Large Size XML files for data transfer


    "Kondratyev Denis" <info@visualdesign.ru> wrote in message
    news:cck9je$jq3$1@news.rol.ru...
    > Imho Iain mean XmlTextReader class, becauce XmlReader is abstract class
    and
    > u cant use it for work with XML (rtfm). U can find examples in .NET
    > Framework SDK,
    > [url]http://msdn.microsoft.com/vcsharp/downloads/samples/23samples/default.aspx[/url]
    ,
    > [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;301225[/url] or in
    Google.
    >
    Sorry. Yes. - my earlier point was it should be possible to write an
    XmlZippedTextReader class (and it's counterpart) which would be useful..

    However, I'm not volounteering.

    Iain


    Iain Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139