Package cli.System.Xml

Examples of cli.System.Xml.XmlNode


     * @return the result of the conversion if the object can be converted, or null otherwise
     */

    public Value convertObjectToXPathValue(Object object, Configuration config) throws XPathException {
        if (object instanceof XmlNode) {
            XmlNode node = (XmlNode)object;
            DocumentWrapper dw = new DocumentWrapper(
                    node.get_OwnerDocument(),  node.get_BaseURI(), config);
            NodeWrapper nw = dw.wrap(node);
            return new SingletonItem(nw);
        } else if (isXdmValue(object)) {
            return Value.asValue(unwrapXdmValue(object));
        } else {
View Full Code Here


     *         that comes last should be returned.
     */

    public NodeInfo selectID(String id, boolean getParent) {
        if (node instanceof XmlDocument) {
            XmlNode el = ((XmlDocument)node).GetElementById(id);
            if (el == null) {
                return null;
            }
            return wrap(el);
        } else {
View Full Code Here

     * @return the result of the conversion if the object can be converted, or null otherwise
     */

    public Value convertObjectToXPathValue(Object object, Configuration config) throws XPathException {
        if (object instanceof XmlNode) {
            XmlNode node = (XmlNode)object;
            DocumentWrapper dw = new DocumentWrapper(
                    node.get_OwnerDocument(),  node.get_BaseURI(), config);
            NodeWrapper nw = dw.wrap(node);
            return new SingletonNode(nw);        
        } else if (isXdmValue(object)) {
            return Value.asValue(unwrapXdmValue(object));
        } else {
View Full Code Here

     *         that comes last should be returned.
     */

    public NodeInfo selectID(String id) {
        if (node instanceof XmlDocument) {
            XmlNode el = ((XmlDocument)node).GetElementById(id);
            if (el == null) {
                return null;
            }
            return wrap(el);
        } else {
View Full Code Here

TOP

Related Classes of cli.System.Xml.XmlNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.