Compare XML string
Sand T
sand.softnet1@REDACTED
Fri Jun 25 08:43:23 CEST 2010
Hi,
I need to compare two given XML string to ensure that the two strings
are identical or not at runtime. Does anyone have any idea on how to
do this in erlang?
Following are some of the examples
Given String
<response type=\"progress\" im=\"IM\" login=\"ABC\"
code=\"102\">Authentication Successful ...</response>
Exp String:
<response type=\"progress\" im=\"IM\" login=\"ABC\"
code=\"102\">Authentication Successful ...</response>
Eq 2:
Given String
<response type=\"progress\" im=\"IM\" login=\"ABC\"
code=\"102\">Authentication Successful ...</response>
<buddies im=\"IM\" login=\"ABC\"><buddy name=\"XYZ\" nickname=\"\"
status=\"offline\" custom=\"Is offline\" group=\"Friends\"
blocked=\"no\"/></buddies>
Expected:
<response type=\"progress\" im=\"IM\" login=\"ABC\" >Authentication
Successful ...</response>
<buddies im=\"IM\" login=\"ABC\" ><buddy name=\"XYZ\" nickname=\"\"
status=\"online\" custom=\"Is offline\" group=\"Friends\"
blocked=\"no\"/></buddies>
Regards,
Sandeep
More information about the erlang-questions
mailing list