@ Nonnull public PSName readNameFromXML ( @ Nonnull final IMicroElement eName ) { final PSName ret = new PSName ( ) ; eName . forAllAttributes ( ( sNS , sAttrName , sVal ) -> { final String sAttrValue = _getAttributeValue ( sVal ) ; if ( sAttrName . equals ( CSchematronXML . ATTR_PATH ) ) ret . setPath ( sAttrValue ) ; else ret . addForeignAttribute ( sAttrName , sAttrValue ) ; } ) ; eName . forAllChildElements ( eNameChild -> { if ( CSchematron . NAMESPACE_SCHEMATRON . equals ( eNameChild . getNamespaceURI ( ) ) ) { _warn ( ret , "Unsupported Schematron element '" + eNameChild . getLocalName ( ) + "'" ) ; } else _warn ( ret , "Unsupported namespace URI '" + eNameChild . getNamespaceURI ( ) + "'" ) ; } ) ; return ret ; }
Read a &lt ; name&gt ; element