XML parser for javascript middleware

Is there any XML parser for javascript middleware?

If not, Is there a way to add libraries to Tyk’s Javascript VM?

Hi Andrew,

Please see the following gist: jsvm - read xml request body, and pass credentials to b64 encoded Authorization header · GitHub

In the example, Tyk JSVM uses embedded Marknote XML parser to extract username and password from XML body, then base 64 encode it and inject it into an Authorization header

Hope that this helps

1 Like