Guest User

Untitled

a guest
Apr 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. var bpsResponseXml = new XElement("BPSResponse");
  2.  
  3. bpsResponseXml.Add(new XElement("Response",
  4. new XElement("Code", "804"),
  5. new XElement("Text", "TagID value is not genuine")));
  6.  
  7. var outPutXml = bpsResponseXml.Value;
  8.  
  9. <BPSResponse> <Response> <Code>804</Code> <Text>TagID value is not genuine.</Text> </Response> </BPSResponse>
  10.  
  11. <BPSResponse><Response><Code>804</Code><Text>TagID value is not genuine.</Text></Response></BPSResponse>
  12.  
  13. var bpsResponseXml = new XElement("BPSResponse");
  14.  
  15. bpsResponseXml.Add(new XElement("Response",
  16. new XElement("Code", "804"),
  17. new XElement("Text", "TagID value is not genuine")));
  18.  
  19. var outPutXml = bpsResponseXml.ToString(System.Xml.Linq.SaveOptions.DisableFormatting);
Add Comment
Please, Sign In to add comment