private String extractStringValue ( XMLObject xmlo ) { if ( xmlo instanceof XSString ) { return ( ( XSString ) xmlo ) . getValue ( ) ; } else if ( xmlo instanceof XSAnyImpl ) { return ( ( XSAnyImpl ) xmlo ) . getTextContent ( ) ; } logger . warn ( "Unable to map attribute class {} to String. Unknown type. Enable TRACE logging to see attribute name" , xmlo . getClass ( ) ) ; return null ; }
Extracts the string value of the XMLObject depending upon its type .