Skip to content

need xml-to-slax extension function #20

@philshafer

Description

@philshafer

Subrata Mazumdar writes:

Is there a programatic API in SLAX that would allow me to save data from XML format into SLAX?
I am looking for capability that can be achieved using "slaxproc -s -p".

No, I don't have that. But it's easy to add, as an extension
function that turns XML into a SLAX-friendly string, like:

var $s = xutil:xml-to-slax("<top><test/></top>");

where the output is:

<top> {
     <test>;
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions