@ Nonnull public PSNS readNSFromXML ( @ Nonnull final IMicroElement eNS ) { final PSNS ret = new PSNS ( ) ; eNS . forAllAttributes ( ( sNS , sAttrName , sVal ) -> { final String sAttrValue = _getAttributeValue ( sVal ) ; if ( sAttrName . equals ( CSchematronXML . ATTR_URI ) ) ret . setUri ( sAttrValue ) ; else if ( sAttrName . equals ( CSchematronXML . ATTR_PREFIX ) ) ret . setPrefix ( sAttrValue ) ; else ret . addForeignAttribute ( sAttrName , sAttrValue ) ; } ) ; eNS . forAllChildElements ( eLetChild -> { if ( CSchematron . NAMESPACE_SCHEMATRON . equals ( eLetChild . getNamespaceURI ( ) ) ) { _warn ( ret , "Unsupported Schematron element '" + eLetChild . getLocalName ( ) + "'" ) ; } else _warn ( ret , "Unsupported namespace URI '" + eLetChild . getNamespaceURI ( ) + "'" ) ; } ) ; return ret ; }
Read a &lt ; ns&gt ; element