@ Nonnull public PSParam readParamFromXML ( @ Nonnull final IMicroElement eParam ) { final PSParam ret = new PSParam ( ) ; eParam . forAllAttributes ( ( sNS , sAttrName , sVal ) -> { final String sAttrValue = _getAttributeValue ( sVal ) ; if ( sAttrName . equals ( CSchematronXML . ATTR_NAME ) ) ret . setName ( sAttrValue ) ; else if ( sAttrName . equals ( CSchematronXML . ATTR_VALUE ) ) ret . setValue ( sAttrValue ) ; else _warn ( ret , "Unsupported attribute '" + sAttrName + "'='" + sAttrValue + "'" ) ; } ) ; eParam . forAllChildElements ( eParamChild -> { if ( CSchematron . NAMESPACE_SCHEMATRON . equals ( eParamChild . getNamespaceURI ( ) ) ) { _warn ( ret , "Unsupported Schematron element '" + eParamChild . getLocalName ( ) + "'" ) ; } else _warn ( ret , "Unsupported namespace URI '" + eParamChild . getNamespaceURI ( ) + "'" ) ; } ) ; return ret ; }
Read a &lt ; param&gt ; element