morbac / xmltools

XML Tools plugin for Notepad++
GNU General Public License v3.0
260 stars 57 forks source link

Xml file with json inside #111

Closed uujwnqjgim closed 3 years ago

uujwnqjgim commented 3 years ago

we have the above xml with json inside

<?xml version="1.0" encoding="utf-8"?>
<ContextHttpRequest>
    <Uri>https://webservices.acscourier.net/ACSRestServices/api/ACSAutoRest</Uri>
    <Request>{"Alias":"Create_Voucher","InputParameters":{"Company_ID":"Test","Language":"EN"}}</Request>
    <Source>CreateVoucher</Source>
</ContextHttpRequest>

can you reformat as below?

<?xml version="1.0" encoding="utf-8"?>
<ContextHttpRequest>
    <Uri>https://webservices.acscourier.net/ACSRestServices/api/ACSAutoRest</Uri>
    <Request>{
    "Alias": "Create_Voucher",
    "InputParameters": {
        "Company_ID": "Test",
        "Language": "EN"
    }
}</Request>
    <Source>CreateVoucher</Source>
</ContextHttpRequest>

thanks

morbac commented 3 years ago

Hi,

Unfortunately no. JSON formating is not the goal of xmltools plugin.