How do I split a large xml file?

后端 未结 7 2036
小鲜肉
小鲜肉 2021-01-02 14:05

We export “records” to an xml file; one of our customers has complained that the file is too big for their other system to process. Therefore I need to split up the file,

7条回答
  •  执念已碎
    2021-01-02 14:35

    There is nothing built in that can handle this situation easily.

    Your approach sounds reasonable, though I would probably start with a "skeleton" document containing the elements that need to be repeated and generate several documents with the "records".


    Update:

    After a bit of digging, I found this article describing a way to split files using XSLT.

提交回复
热议问题