How to Split a XML file to multiple small XML Files using VB.net - basic.visual

This is a discussion on How to Split a XML file to multiple small XML Files using VB.net - basic.visual ; Hello, I am trying to split a XML file to multiple small xml files in vb .net and am trying to get the best possible approach to this. Any help on this will be great... Sample example on what I ...

+ Reply to Thread
Results 1 to 2 of 2

How to Split a XML file to multiple small XML Files using VB.net

  1. Default How to Split a XML file to multiple small XML Files using VB.net

    Hello,

    I am trying to split a XML file to multiple small xml files in vb.net
    and am trying to get the best possible approach to this. Any help on
    this will be great... Sample example on what I am trying to do...
    Source XML document
    --------------------------
    <?xml version="1.0" standalone="yes"?>
    <SynchronizationObjectsDocument >
    <ApplicationArea>
    <DocId>dea9593b-4c60-4c1a-ab7f-004a4e336ac5</DocId>
    <CreationDateTime>2004-05-13T21:31:48-04:00</CreationDateTime>
    </ApplicationArea>
    <Data>
    <V_CLI_CLIENTS>
    <V_CLI_CLIENT>
    <ORU_CODE>CLIENT1</ORU_CODE>
    </V_CLI_CLIENT>
    <V_CLI_CLIENT>
    <ORU_CODE>CLIENT2</ORU_CODE>
    </V_CLI_CLIENT>
    </V_CLI_CLIENTS>
    </Data>
    </SynchronizationObjectsDocument>

    Should split to two xml documents as below
    --------------------------------------------------
    <?xml version="1.0" standalone="yes"?>
    <SynchronizationObjectsDocument >
    <ApplicationArea>
    <DocId>dea9593b-4c60-4c1a-ab7f-004a4e336ac5</DocId>
    <CreationDateTime>2004-05-13T21:31:48-04:00</CreationDateTime>
    </ApplicationArea>
    <Data>
    <V_CLI_CLIENTS>
    <V_CLI_CLIENT>
    <ORU_CODE>CLIENT1</ORU_CODE>
    </V_CLI_CLIENT>
    </V_CLI_CLIENTS>
    </Data>
    </SynchronizationObjectsDocument>

    <?xml version="1.0" standalone="yes"?>
    <SynchronizationObjectsDocument >
    <ApplicationArea>
    <DocId>dea9593b-4c60-4c1a-ab7f-004a4e336ac5</DocId>
    <CreationDateTime>2004-05-13T21:31:48-04:00</CreationDateTime>
    </ApplicationArea>
    <Data>
    <V_CLI_CLIENTS>
    <V_CLI_CLIENT>
    <ORU_CODE>CLIENT2</ORU_CODE>
    </V_CLI_CLIENT>
    </V_CLI_CLIENTS>
    </Data>
    </SynchronizationObjectsDocument>

  2. Default Re: How to Split a XML file to multiple small XML Files using VB.net

    Almost everybody in this newsgroup is using VB6 or lower. While you may
    get a stray answer to VB.NET questions here, you should ask them in
    newsgroups devoted exclusively to .NET programming. Look for newsgroups
    with either the word "dotnet" or "vsnet" in their name.

    For the microsoft news server, try these newsgroups...

    microsoft.public.dotnet.general
    microsoft.public.dotnet.languages.vb
    microsoft.public.vsnet.general

    There are some others, but these should get you started.

    Rick - MVP



    "kumu" <forlist2001@yahoo.com> wrote in message
    news:a44abd39.0406020755.3a7caf89@posting.google.com...
    > Hello,
    >
    > I am trying to split a XML file to multiple small xml files in vb.net
    > and am trying to get the best possible approach to this. Any help on
    > this will be great... Sample example on what I am trying to do...
    > Source XML document
    > --------------------------
    > <?xml version="1.0" standalone="yes"?>
    > <SynchronizationObjectsDocument >
    > <ApplicationArea>
    > <DocId>dea9593b-4c60-4c1a-ab7f-004a4e336ac5</DocId>
    > <CreationDateTime>2004-05-13T21:31:48-04:00</CreationDateTime>
    > </ApplicationArea>
    > <Data>
    > <V_CLI_CLIENTS>
    > <V_CLI_CLIENT>
    > <ORU_CODE>CLIENT1</ORU_CODE>
    > </V_CLI_CLIENT>
    > <V_CLI_CLIENT>
    > <ORU_CODE>CLIENT2</ORU_CODE>
    > </V_CLI_CLIENT>
    > </V_CLI_CLIENTS>
    > </Data>
    > </SynchronizationObjectsDocument>
    >
    > Should split to two xml documents as below
    > --------------------------------------------------
    > <?xml version="1.0" standalone="yes"?>
    > <SynchronizationObjectsDocument >
    > <ApplicationArea>
    > <DocId>dea9593b-4c60-4c1a-ab7f-004a4e336ac5</DocId>
    > <CreationDateTime>2004-05-13T21:31:48-04:00</CreationDateTime>
    > </ApplicationArea>
    > <Data>
    > <V_CLI_CLIENTS>
    > <V_CLI_CLIENT>
    > <ORU_CODE>CLIENT1</ORU_CODE>
    > </V_CLI_CLIENT>
    > </V_CLI_CLIENTS>
    > </Data>
    > </SynchronizationObjectsDocument>
    >
    > <?xml version="1.0" standalone="yes"?>
    > <SynchronizationObjectsDocument >
    > <ApplicationArea>
    > <DocId>dea9593b-4c60-4c1a-ab7f-004a4e336ac5</DocId>
    > <CreationDateTime>2004-05-13T21:31:48-04:00</CreationDateTime>
    > </ApplicationArea>
    > <Data>
    > <V_CLI_CLIENTS>
    > <V_CLI_CLIENT>
    > <ORU_CODE>CLIENT2</ORU_CODE>
    > </V_CLI_CLIENT>
    > </V_CLI_CLIENTS>
    > </Data>
    > </SynchronizationObjectsDocument>



+ Reply to Thread

Similar Threads

  1. Replies: 3
    Last Post: 11-28-2007, 07:28 AM
  2. How to split ruby code into multiple files
    By Application Development in forum RUBY
    Replies: 5
    Last Post: 10-21-2007, 04:48 AM
  3. split implementation to multiple files
    By Application Development in forum C
    Replies: 6
    Last Post: 03-07-2007, 05:19 PM
  4. How to split a larger file into smaller files in REXX
    By Application Development in forum REXX
    Replies: 10
    Last Post: 09-28-2006, 03:13 AM
  5. How to Split a XML file to multiple small XML Files
    By Application Development in forum basic.visual
    Replies: 0
    Last Post: 06-01-2004, 01:52 PM