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

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

The newest version!
package javax0.jamal.snippet;

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

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


public class ThinXmlMacro implements Macro, InnerScopeDependent {
    @Override
    public String evaluate(Input in, Processor processor) throws BadSyntax {
        skipWhiteSpaces2EOL(in);
        return new ThinXml(in.toString()).getXml();
    }

    @Override
    public String getId() {
        return "thinXml";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy