remuslazar / node-xmlsplit

Split large XML files into smaller chunks, uses Node.js Stream API
MIT License
18 stars 6 forks source link

Nested elements having the same name result in invalid XML fragments #4

Closed marcelrassinger closed 8 years ago

marcelrassinger commented 8 years ago

To reproduce run

node testXMLSplit.js -t book -i order2.xml -o out

Files are in the attached zip file. "out" is the prefix of the output files. I think for most cases ist will be sufficient to split at the topmost "book". Maybe by using a stack counter.

bug.zip

remuslazar commented 8 years ago

@marcelrassinger could u pls check if the mentioned pr does fix your issue? Thanks!

marcelrassinger commented 8 years ago

Thanks, it works!

On 16 Feb 2016, at 14:58, Remus Lazar notifications@github.com wrote:

@marcelrassinger https://github.com/marcelrassinger could u pls check if the mentioned pr does fix your issue? Thanks!

— Reply to this email directly or view it on GitHub https://github.com/remuslazar/node-xmlsplit/issues/4#issuecomment-184692908.