How to transform large XML file? using .net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • raj@aol.com

    How to transform large XML file? using .net

    we have a 3 gig of xml data. we need to transform this data using our XSL
    file.
    when i use the regular transform methods of course i run out of memeory.

    the XSL file has quite bit of rules so i really cannot move them in to my
    code.
    is there way to transform the file streamingly?

    thanks.
  • John Saunders [MVP]

    #2
    Re: How to transform large XML file? using .net

    <raj@aol.comwro te in message
    news:%23khQSW9g IHA.4076@TK2MSF TNGP05.phx.gbl. ..
    we have a 3 gig of xml data. we need to transform this data using our XSL
    file.
    when i use the regular transform methods of course i run out of memeory.
    >
    the XSL file has quite bit of rules so i really cannot move them in to my
    code.
    is there way to transform the file streamingly?
    Not using XSL. You can, of course, read the file using an XmlReader, and
    write it using an XmlWriter. This will work, no matter how large the file
    is.

    Also, if you're aware of the structure of the data in the file, you may find
    that you don't need the full generality of XSL. Among other things, there
    may be large sections of the file that would not have been modified. You can
    read and write those without having to touch them.
    --
    --------------------------------------------------------------------------------
    John Saunders | MVP - Windows Server System - Connected System Developer


    Comment

    Working...