IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Problem with

    Posted 12/04/01 05:42 PM

    Hello,

    I would like to know whether there are any problems when parsing an XML document which has a


    #API-Management
    #Tamino
    #webMethods


  • 2.  RE: Problem with

    Posted 12/05/01 02:10 AM

    (I assume by “pound symbol” you mean the UK currency symbol, Unicode x00A3, and not the hash symbol “#” which Americans often refer to as a pound sign).

    The most likely reason for the problem is that you have used the iso-8859-1 representation of a


    #Tamino
    #API-Management
    #webMethods


  • 3.  RE: Problem with

    Posted 12/05/01 11:17 AM

    Thankyou very much for your response. In tamino, how do i specify the xml declaration to include the encoding? what i have done is created the collection and have loaded data into the database using Interactive Interface. How do i specify the encoding type?

    Thankyou


    quote:
    Originally posted by Michael Kay:
    (I assume by “pound symbol” you mean the UK currency symbol, Unicode x00A3, and not the hash symbol “#” which Americans often refer to as a pound sign).

    The most likely reason for the problem is that you have used the iso-8859-1 representation of a


    #webMethods
    #API-Management
    #Tamino


  • 4.  RE: Problem with

    Posted 12/05/01 11:29 AM

    does the data you load into Tamino begin
    <?xml version="1.0" encoding="iso-8859-1"?>

    ??


    #API-Management
    #Tamino
    #webMethods


  • 5.  RE: Problem with

    Posted 12/05/01 11:33 AM

    Yes it does. Still the error is coming. The error that comes up is.

    Transformer Exception:javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xa3) was found in the element content of the document.

    Thankyou

    quote:
    Originally posted by Nigel Hutchison:
    does the data you load into Tamino begin
    <?xml version="1.0" encoding="iso-8859-1"?>

    ??



    #Tamino
    #webMethods
    #API-Management


  • 6.  RE: Problem with

    Posted 12/05/01 12:33 PM

    I think problem is because you are using
    the Element method toString() to serialize the node toString produces a string representation of the node - but it is not an XML document - This method
    is really only for debugging

    To get an XML document

    use the TaminoResult method toXMLString(node)

    Documentation
    java.lang.String toXmlString(org.w3c.dom.Node n)
    This converts a DOM Node into a raw XML string.

    like this

    xml= myResult.toXMLString(myElement);

    The Docuverse DOM has a class XMLWriter that is a kind of generalization of this.

    [This message was edited by Nigel Hutchison on 05 Dec 2001 at 12:20.]


    #webMethods
    #Tamino
    #API-Management