Update XmlProvider String() func

The comment specifies that it should display the already parsed values
out of cache.
This commit is contained in:
ionutboangiu
2023-10-17 03:29:23 -04:00
committed by Dan Christian Bogos
parent 889ec93288
commit 63e06dd86a

View File

@@ -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