Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need xml-to-slax extension function #20

Open
philshafer opened this issue Mar 24, 2014 · 0 comments
Open

need xml-to-slax extension function #20

philshafer opened this issue Mar 24, 2014 · 0 comments
Assignees

Comments

@philshafer
Copy link
Contributor

philshafer commented Mar 24, 2014

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>;
}
@philshafer philshafer self-assigned this Mar 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant