Package org.exist.xquery.value

Examples of org.exist.xquery.value.NodeValue


       
        private void itemToSAX(Item item, boolean typed, boolean wrap, AttrList attrs) throws SAXException {
           

            if(Type.subTypeOf(item.getType(), Type. NODE)) {
                final NodeValue node = (NodeValue) item;

                if(typed) {
                    //TODO the typed and wrapped stuff should ideally be replaced
                    //with Marshaller.marshallItem
                    //unfortrunately calling Marshaller.marshallItem(broker, item, new SAXToReceiver(receiver))
                    //results in a stack overflow
                    //TODO consider a full XDM serializer in place of this for these special needs

                    serializeTypePreNode(node);
                    if(node.getType() == Type.ATTRIBUTE) {
                        serializeTypeAttributeValue(node);
                    } else {
                        serializeToReceiver(node, false);
                    }
                    serializeTypePostNode(node);
View Full Code Here

TOP

Related Classes of org.exist.xquery.value.NodeValue

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.