Example usage for com.google.gwt.xml.client DOMException INVALID_CHARACTER_ERR

List of usage examples for com.google.gwt.xml.client DOMException INVALID_CHARACTER_ERR

Introduction

In this page you can find the example usage for com.google.gwt.xml.client DOMException INVALID_CHARACTER_ERR.

Prototype

short INVALID_CHARACTER_ERR

To view the source code for com.google.gwt.xml.client DOMException INVALID_CHARACTER_ERR.

Click Source Link

Usage

From source file:client.net.sf.saxon.ce.xmldom.DocumentImpl.java

License:Apache License

/**
 * This function delegates to the native method
 * <code>createCDATASection</code> in XMLParserImpl.
 *//*from   w ww .j  a v a  2s  .  co  m*/
public CDATASection createCDATASection(String data) {
    try {
        return (CDATASection) NodeXml.build(XMLParserImpl.createCDATASection(this.getJsObject(), data));
    } catch (JavaScriptException e) {
        throw new DOMNodeExceptionXml(DOMException.INVALID_CHARACTER_ERR, e, this);
    }
}

From source file:client.net.sf.saxon.ce.xmldom.DocumentImpl.java

License:Apache License

/**
 * This function delegates to the native method <code>createComment</code>
 * in XMLParserImpl./*from   w ww.j a v  a 2s  .c  o m*/
 */
public Comment createComment(String data) {
    try {
        return (Comment) NodeXml.build(XMLParserImpl.createComment(this.getJsObject(), data));
    } catch (JavaScriptException e) {
        throw new DOMNodeExceptionXml(DOMException.INVALID_CHARACTER_ERR, e, this);
    }
}

From source file:client.net.sf.saxon.ce.xmldom.DocumentImpl.java

License:Apache License

/**
 * This function delegates to the native method
 * <code>createDocumentFragment</code> in XMLParserImpl.
 *//*from  w ww  .  j a v  a  2 s.  com*/
public DocumentFragment createDocumentFragment() {
    try {
        return (DocumentFragment) NodeXml.build(XMLParserImpl.createDocumentFragment(this.getJsObject()));
    } catch (JavaScriptException e) {
        throw new DOMNodeExceptionXml(DOMException.INVALID_CHARACTER_ERR, e, this);
    }
}

From source file:client.net.sf.saxon.ce.xmldom.DocumentImpl.java

License:Apache License

/**
 * This function delegates to the native method <code>createElement</code>
 * in XMLParserImpl./*from   w  ww  .ja  va  2  s  .  c  o m*/
 */
public Element createElement(String tagName) {
    try {
        return (Element) NodeXml.build(XMLParserImpl.createElement(this.getJsObject(), tagName));
    } catch (JavaScriptException e) {
        throw new DOMNodeExceptionXml(DOMException.INVALID_CHARACTER_ERR, e, this);
    }
}

From source file:client.net.sf.saxon.ce.xmldom.DocumentImpl.java

License:Apache License

/**
 * This function delegates to the native method
 * <code>createProcessingInstruction</code> in XMLParserImpl.
 *///from   w  ww . jav a 2  s .  c  o  m
public ProcessingInstruction createProcessingInstruction(String target, String data) {
    try {
        return (ProcessingInstruction) NodeXml
                .build(XMLParserImpl.createProcessingInstruction(this.getJsObject(), target, data));
    } catch (JavaScriptException e) {
        throw new DOMNodeExceptionXml(DOMException.INVALID_CHARACTER_ERR, e, this);
    }
}

From source file:client.net.sf.saxon.ce.xmldom.DocumentImpl.java

License:Apache License

/**
 * This function delegates to the native method <code>createTextNode</code>
 * in XMLParserImpl.// w w w. ja  v  a  2 s.  c om
 */
public Text createTextNode(String data) {
    try {
        return (Text) NodeXml.build(XMLParserImpl.createTextNode(this.getJsObject(), data));
    } catch (JavaScriptException e) {
        throw new DOMNodeExceptionXml(DOMException.INVALID_CHARACTER_ERR, e, this);
    }
}

From source file:client.net.sf.saxon.ce.xmldom.ProcessingInstructionImpl.java

License:Mozilla Public License

/**
 * This function delegates to the native method <code>setData</code> in
 * XMLParserImpl./*from  w  ww  . j  a v a 2 s .  c o m*/
 */
public void setData(String data) {
    try {
        XMLParserImpl.setData(this.getJsObject(), data);
    } catch (JavaScriptException e) {
        throw new DOMNodeExceptionXml(DOMException.INVALID_CHARACTER_ERR, e, this);
    }
}