From 63e06dd86a8ae65ed35822748b5b3244a2f378b4 Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Tue, 17 Oct 2023 03:29:23 -0400 Subject: [PATCH] Update XmlProvider String() func The comment specifies that it should display the already parsed values out of cache. --- config/xmldp.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/config/xmldp.go b/config/xmldp.go index 34108ab42..2f36b6d4f 100644 --- a/config/xmldp.go +++ b/config/xmldp.go @@ -57,10 +57,7 @@ type XMLProvider struct { // String is part of engine.utils.DataProvider interface // when called, it will display the already parsed values out of cache func (xP *XMLProvider) String() string { - - // TODO: Find a proper way to display xP as string. Right now it's returning an - // empty string due to xmlquery.Node referencing itself. - return utils.ToJSON(xP.req) + return xP.cache.String() } // FieldAsInterface is part of engine.utils.DataProvider interface