/** * Report the original prefixed names and attributes used for namespace declarations. * * @param allowProcessing enables/disables the processing * @return XMLReaderBuilder * @throws XMLReaderCreationException */ public XMLReaderBuilder allowAttributeNamespaceProcessing(boolean allowProcessing) throws XMLReaderCreationException { withFeature(FEATURE_NAMESPACE_PREFIX, allowProcessing); return this; }
private static XMLReader getDefaultSEXPXMLReader() { try { return new XMLReaderBuilder().allowNamespaceProcessing(true).build(); } catch (XMLReaderBuilder.XMLReaderCreationException e) { throw new RuntimeException(e); } }
/** * Perform namespace processing: prefixes will be stripped off element and attribute names and * replaced with the corresponding namespace URIs. By default, the two will simply be concatenated, * but the namespace-sep core property allows the application to specify a delimiter string for * separating the URI part and the local part. * * @param allowProcessing enables/disables the processing * @return XMLReaderBuilder * @throws XMLReaderCreationException */ public XMLReaderBuilder allowNamespaceProcessing(boolean allowProcessing) throws XMLReaderCreationException { withFeature(FEATURE_NAMESPACE, allowProcessing); return this; }