com.prowidesoftware.swift.io.parser
Class XMLParser

java.lang.Object
  extended by com.prowidesoftware.swift.io.parser.XMLParser

public class XMLParser
extends java.lang.Object

This is the main parser for WIFE's XML internal representation.
The supported XML format is consider internal because it is an ad-hoc defined XML structure for Swift messages, so it's not the SWIFT XML Standard for FIN Messages.

This implementation should be used by calling some of the the conversion services.

Since:
5.0
Author:
www.prowidesoftware.com
See Also:
IConversionService

Constructor Summary
XMLParser()
           
 
Method Summary
 SwiftMessage parse(java.lang.String xml)
          Given a String containing a message in its WIFE internal XML representation, returns a SwiftMessage object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLParser

public XMLParser()
Method Detail

parse

public SwiftMessage parse(java.lang.String xml)
Given a String containing a message in its WIFE internal XML representation, returns a SwiftMessage object. If there is any error during conversion this method returns null

Parameters:
xml - the string containing the XML to parse
Returns:
the XML parsed into a SwiftMessage object
See Also:
IConversionService.getMessageFromXML(java.lang.String)