How to apply list of xml parse settings to xml-type-tags in a function? (solution: use eval)

Started by IVShilov, September 13, 2021, 04:31:46 AM

Previous topic - Next topic

IVShilov

Hi.

I try to wrap (xml-type-tags) and (xml-parse) into one safe function without side effects.

So I have to pass params to it.

Problem with applying param to (xml-type-tags) in function:
(xml-type-tags nil nil nil nil)
(xml-parse {<br/>} 31)

returns ((br))

but
(apply xml-type-tags '(nil nil nil nil))
(xml-parse {<br/>} 31)

returns ((nil br ())) .

[ newLISP v.10.7.5 64-bit on Windows IPv4/6 UTF-8 libffi ]

IVShilov

A solution found (sorry, attach a picture because of forum internal errors).