Skip to content

How to add encoding and other attributes to the generated XML tag response #9

Open
@emekaadirije

Description

@emekaadirije

I would like to learn how to add attributes to the XML tag

Currently my response results to the below code

<?xml version="1.0"?>
<Response>
    <Param>
        <Key>InvoiceNumber</Key>
        <Value>988899999</Value>
    </Param>
</Response>

I would like to get something like

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Response>
    <Param>
        <Key>InvoiceNumber</Key>
        <Value>988899999</Value>
    </Param>
</Response>

Any help is appreciated.

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