Skip to content

XML namespaces gets double newlines #25

@QAnders

Description

@QAnders

First off, a major THANKS for your module. It is super useful!

<StandardBusinessDocument
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader">

Running this through:

const formattedXml = pd.xml(xmlOut);
 console.log(formattedXml);

Gives:

<StandardBusinessDocument
  
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader">

This might not be against XML specifications per se but it is not very "pretty"....

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