devxlogo

May 28, 2008

Validate an XML Document Only When a DTD Exists

Learn how to use the DOMImplementationDS and DOMConfiguration classes to validate an XML document only when a DTD document can be found: DOMImplementationLS DOMiLS=null;? //get a LSParser object LSParser LSP=DOMiLS.createLSParser(

Concatenating Strings

When you’re concatenating only a few strings, it’s faster to add them than to use StringBuilder. Suppose you want to decompile the following code: string a = “a”;string b =