Your Computer Science Resource

Posts Tagged ‘xml’

Apr
25th

Simple XML Reader

Nowadays XML is a popular format for configuration files and transferring messages across networks. For reading node values from an XML file, I’ve created a small utility class. There are two useful methods in this class, getElementValue() and getElementValues(). In this article, I will briefly show how you can read in values from an XML file using this simple class.

(more…)

Aug
7th

HOW-TO: Extract Text from .DOCX file (Word 2007)

I recently had to figure out a way to extract all of the text from a .DOCX file (Word 2007 document) in Java for a project I’m working on.  Surprisingly, it’s even easier than extracting text from a regular .DOC file.

(more…)