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
Expand all | Collapse all

Characters '<' and '&' in importXMLFromBuffer()

  • 1.  Characters '<' and '&' in importXMLFromBuffer()

    Posted 05/14/04 01:39 PM

    Hallo,

    the method com.birdstep.bdbe.xml.BdXMLDB.importXMLFromBuffer() fails if the XML buffer contains the characters ‘<’ and ‘&’ in a text node. I think, this is a normal behaviour because in a text node these characters must be escaped by ‘<’ and ‘&’ for the XML parser.

    Please tell me, if I am right or wrong concerning this method! If I am wrong (which I do not believe) this should be handled as a bug.

    Regards,
    Pascal Sch


    #API-Management
    #Tamino
    #webMethods


  • 2.  RE: Characters '<' and '&' in importXMLFromBuffer()

    Posted 05/14/04 02:19 PM

    Yes it is a normal behavior. Any XML parser must fail on this because it is not well-formed XML.

    You should always use logic for escaping “<” → “<” , “>” → “>” and “&” → “&” .

    Regards

    Javier C


    #webMethods
    #API-Management
    #Tamino