Serialize and Deserialize an Object to an XML File in C# 2.0
The example in this tip uses an ArrayList object to serialize, deserialize, and store itself in an XML file. However, you can also use user-defined objects. First, add items to
The example in this tip uses an ArrayList object to serialize, deserialize, and store itself in an XML file. However, you can also use user-defined objects. First, add items to
The following code demonstrates how to set a logger for FOP. You can send the logger’s messages to the System.out or in a file like this: //to System.outLogger logger=new ConsoleLogger(ConsoleLogger.LEVEL_INFO);fop.setLogger(logger);MessageHandler.setOutputMethod(MessageHandler.SCREEN);MessageHandler.setScreenLogger(logger);
This tip shows an example of how to use the Iterator API to read from an XML file: import javax.xml.stream.*;import javax.xml.stream.events.*;import java.io.*;public class StAXBasicEventReader{ public StAXBasicEventReader(){} public static void main(String[]
VS 2005, like its predessor, does not allow debugging for classic ASP pages, by default. This forces you to attach the ASP worker process (w3wp.exe). Follow these steps: Enable ASP
A very common use of Aspose.BarCode is to recognize barcodes from multi-page .tiff files. This tip will show you how to recognize barcodes with in a multi-page .tiff image. Here’s
It’s easy to implement a nice dragging effect in JavaFX, using the onMouseDragged event in conjunction with the bind operator (incremental and lazy evaluation of attributes operator). import javafx.ui.canvas.*;import javafx.ui.*;import
Yes, you can map/unmap a drive on the network location from the command prompt. Use the PUSHD command to create a temporary mapping to a network drive. You can also
Instead of writing your own function to convert an integer or float to a string, just use the C++ class stringstream (in the sstream header). In C++: #include #include #include
Use the following Java code to capture a screenshot: import java.awt.AWTException;import java.awt.Rectangle;import java.awt.Robot;import java.awt.image.BufferedImage;import java.io.File;import java.io.IOException;import javax.imageio.ImageIO;public class ScreenCapture { public static void main(String[] args) { try { Robot robot