All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax0.jamal.snippet.SnipXml Maven / Gradle / Ivy

The newest version!
package javax0.jamal.snippet;

import javax0.jamal.api.BadSyntax;
import javax0.jamal.api.Input;
import javax0.jamal.api.Processor;

import static javax0.jamal.tools.InputHandler.convertGlobal;

public class SnipXml extends AbstractXmlDefine {
    @Override
    public String getId() {
        return "snip:xml";
    }

    @Override
    public String evaluate(Input input, Processor processor) throws BadSyntax {
        return evaluate(input,processor,
                (String id) -> new XmlDocument(convertGlobal(id),input));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy