Page 1 of 1

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

Posted: Mon Sep 13, 2021 11:31 am
by 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:

Code: Select all

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

Code: Select all

(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 ]

Re: How to apply list of xml parse settings to xml-type-tags in a function?

Posted: Tue Sep 21, 2021 10:29 am
by IVShilov
A solution found (sorry, attach a picture because of forum internal errors).