Keep it Simple

// practice, the distance between dream and achievement

Tag: XML (page 1 of 2)

SecurityElement.Escape vs HttpUtility.HtmlEncode

You should use the function System.Security.SecurityElement.Escape and not the function System.Web.HttpUtility.HtmlEncode to escape special characters in XML if you don’t want the characters like éûÉ to be converted to éûÉ 

Continue reading

What is XSLT?

XSLT (Extensible Stylesheet Language Transformations) is a language for transforming XML documents into other XML documents or other formats such as HTML for web pages, plain text or XSL Formatting Objects, which may subsequently be converted to other formats, such as PDF, PostScript and PNG.

Continue reading

What is XPath?

XML is simply markup for data. That’s it. XML is not a magic wand; it does not specify how data is transmitted over the wire, it does not specify how data is stored. XML simply determines the format of the data: what you do with the data is up to you. That said, the real power behind XML is not solely its ability to represent data: XML’s real power lies in ancillary technologies that, when combined with XML, provide robust solutions, and XPath is one of those ancillary technologies.

Continue reading

Customizing XmlTextWriter

We all know that XmlTextWriter renders XML data to a string. This string remains in the memory of the C# program. However if you want perform some string manipulation as a part of the XML to a string generation, we you have to extend the XmlTextWriter and override its methods as per the need.

Continue reading

Older posts

© 2017 Keep it Simple

Theme by Anders NorenUp ↑