newLISP Fan Club

Forum => newLISP in the real world => Topic started by: IVShilov on September 13, 2021, 04:31:46 AM

Title: How to apply list of xml parse settings to xml-type-tags in a function? (solution: use eval)
Post by: IVShilov on September 13, 2021, 04:31:46 AM
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 ]
Title: Re: How to apply list of xml parse settings to xml-type-tags in a function?
Post by: IVShilov on September 21, 2021, 03:29:38 AM
A solution found (sorry, attach a picture because of forum internal errors).