/Tag: dcr

Read a Single XML File in Java

The following should complement the supplied article for reading XML files (DCRs) based on a directory.  This will read the contents of a singe file package com.littleforest.examples; import com.interwoven.livesite.dom4j.Dom4jUtils; import com.interwoven.livesite.external.ParameterHash; import com.interwoven.livesite.runtime.RequestContext; import com.interwoven.livesite.external.*; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import java.util.*; import org.dom4j.*; import java.util.Properties; /* Added for proxy use */ [...]

By |2017-11-30T10:42:09+00:00March 2nd, 2009|Articles, Java|0 Comments