Package org.cyberneko.pull.event

Examples of org.cyberneko.pull.event.PrefixMappingEvent


            if (event == null) return null; // end of stream
            if (event.type == XMLEvent.DOCUMENT && !((DocumentEvent) event).start) return null; // end of stream

            if (event.type == XMLEvent.PREFIX_MAPPING) {
                // namespace directive found
                PrefixMappingEvent prefixMappingEvent = (PrefixMappingEvent) event;
                String prefix = prefixMappingEvent.prefix;
                if (prefixesToNamespace.containsKey(prefix)) {
                    throw new IllegalStateException("nested namespaces not supported by currently parser. xmlns=" + prefix);
                }
                prefixesToNamespace.put(prefix, prefixMappingEvent.uri);
View Full Code Here

TOP

Related Classes of org.cyberneko.pull.event.PrefixMappingEvent

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.