KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><LoginResponse xmlns="http://tempuri.org/QuestIPhoneWebService/QuestIPhoneWebService"><LoginResult><RETURN_VALUE><ERROR RESULT= '-1' DESC = 'The password entered into the system is not valid. Please check your password and try again.'/></RETURN_VALUE></LoginResult></LoginResponse></soap:Body></soap:Envelope> Hi I am getting the value from webservices. I want to convert above string to xml can anybody tell how to convert string to xml file in java <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <LoginResponse xmlns="http://tempuri.org/QuestIPhoneWebService/QuestIPhoneWebService"> <LoginResult> <ROOT xmlns:sql="urn:schemas-microsoft-com:xml-sql"><LOGIN_DETAILS USER_ID="testpub2" COMPANY_ID="1" USER_NAME=" aaa" SYSTEM_USER_ID="6976" USER_EMAIL_ID="hcltestpub2@HSDLGSDMNK0098.com" TOKEN_STRING="A93805F1F1C340F5A8155FDD9B77E595" DISCLAIMER_AGREED="1" USER_ENABLED="1" USER_COMPANY_ENABLED="1" USER_TYPE="2" LOGIN_EXPIRY_DAYS="999" TOKEN_CREATION_DATE="2010-10-01T16:04:26" MOBILE_ENABLED="1" USER_COMPANY_MOBILE_ENABLED="1"/><COMPANY_DETAILS CLIENT_TYPE_ID="8"/><USER_SETTINGS><QUEST_GROUP ID="14293" NAME="World" ASSIGN_NUM="14"/><INDEX_PROVIDER ID="14251" NAME="QUEST (Default)"/><STOCK_IDENTIFIER ID="57" NAME="TICKER"/></USER_SETTINGS><PERMISSIONS><QUEST_FUNCTIONS><FUNCTION NAM
Tags (comma-separated)
Save Edits
Cancel