View Snippet

XmlDocument Example

  Visual C++ XML

Viewed: 651

Date: 2010-02-13

This code snippet shows how to read an XML document.

View Snippet

New Snippets

Highlight Input Element On Focus Javascript JQuery

This code snippet shows how to highlight an input element when it has focus and remove the highlight when it loses focus.

Calculate Age C# Miscellaneous

This code snippet shows how to calculate an age from a date of birth.

LINQ Example 2 C# LINQ

This linq example shows how to query a List object.

Sliding Tab Control Javascript JQuery

This code snippet shows how to develop a simple tab control, that slides tab pages when you click onto a tab.

LINQ Example 1 C# LINQ

This code snippet uses where to find all elements of an array that is less than 10.

File Exists Visual C++ File Manipulation

This code snippet determines if a file exists.

XML Example 1 Ruby XML

This code snippet shows how to loop through an XML string.

Simple MySQL Class To Query Database Java Database

The following code snippet shows how to create a simple MySql class that can be used to create a connection to the database server and execute queries which return a ResultSet object.

Connect To MySQL Database Java Database

This code snippet shows how to connect to a MySQL database server. You will need to download Connector/j.

File Viewer Example Java Controls

This code snippet shows how to open a file for reading and display the data into a JTextArea component.

JMenu With ActionListener Example Java Controls

This code snippet shows how to add an ActionListener to a JMenu component.

JMenuBar Example Java Controls

This code snippet demonstrates how to use the JMenuBar component and how to add menu items using the JMenu and JMenuItem components.

MD5 Message Digest Example 1 Java Security

This code snippet shows how to use the MessageDigest class to get an instance of the MD5 MessageDigest. This code snippet does not return a 32 character string.

Check If File Is Hidden Java File Manipulation

This code snippet checks if a file is hidden.

Check If File Exists Java File Manipulation

This code snippet checks if a file exists. If it does, it displays its absolute file path.

What Others Are Viewing

Highlight Input Element On Focus Javascript JQuery

This code snippet shows how to highlight an input element when it has focus and remove the highlight when it loses focus.

LINQ Example 2 C# LINQ

This linq example shows how to query a List object.

Sliding Tab Control Javascript JQuery

This code snippet shows how to develop a simple tab control, that slides tab pages when you click onto a tab.

LINQ Example 1 C# LINQ

This code snippet uses where to find all elements of an array that is less than 10.

File Exists Visual C++ File Manipulation

This code snippet determines if a file exists.

Top Visual C++ Snippets

This code snippet shows how to write to a file using the StreamWriter class.

This sinppet opens an image for reading as bytes. The bytes are then placed into a memorystream which is used to create a bitmap image.

This code snippet shows how to read a CSV file using the StreamReader class.

This code snippet shows how to read a file using the StreamReader class.

This code snippet shows how to read an XML document.

This code snippet demonstrates how to connect to a webserver on port 80 using the TcpClient class.

This code snippet shows how to scan a range of ports using the TcpClient class.

This code snippet shows how to mix managed and unmanaged code.

This code snippet determines if a file exists.