String xml = messageText.substring( mBegintag.start( ),
mEndtag.end( ) );
//attempt to build a NotifyDocument to get at the Notify and validate
NotifyDocument notifyDoc = NotifyDocument.Factory.parse( xml );
NotifyDocument.Notify notify = notifyDoc.getNotify( );
NotificationMessageHolderType[] notificationMessageArray = notify.getNotificationMessageArray( );
for ( int i = 0; i < notificationMessageArray.length; i++ )
{
NotificationMessageHolderType notificationMessageHolderType = notificationMessageArray[i];