LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Multiple Output XML files

    Employee
    Posted 05-21-2015 03:35

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Patman

    How can I create multiple XML files wherein each file will only contain 1000 records?

    Every time the records exceeds 1000, it will spill over to the next file.

    Is there a way to do this with the Output XML node?

    Thanks!


  • 2.  RE: Multiple Output XML files

    Employee
    Posted 12-16-2015 08:44

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: mgajdosik

    No with Output XML node, you will need to create python node for that. Eventually if you know that you can expect only x thousands records, where x is below reasonable amount, you can have a filter node with multiple outputs and use the following syntax to separate the records, and then attach multiple output xml nodes to each of the output.

    output 1 {
    emit * where execCount<=1000
    }
    output 2 {
    emit * where execCount>1000 and execCount<=2000
    }
    etc

    Marek