Skip to content

stream with multiple input #30

@broncha

Description

@broncha

Hi,
I have multiple input to xml. When I close on of the input stream, closing other has no effect. I dont get the closing tag for the last element

kml = xml.element({ _attr: { xmlns: 'http://www.opengis.net/kml/2.2'} });
doc = xml.element({})

stream = xml([{kml: kml}, {Document: doc}], {declaration: true})

stream.on 'data', (chunk) ->
  console.log(chunk);

doc.close()
kml.close()

And here is the output

<?xml version="1.0" encoding="UTF-8"?><kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
</Document>

Closign tag for kml is missing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions