-
Book Overview & Buying
-
Table Of Contents
Apache OfBiz Cookbook
If you ever have a requirement to manipulate XML files, whether it be as a result of an incoming XML-RPC or a need to process a local file system XML document, OFBiz has a number of tools that you may find useful. The following program demonstrates just some of the many options available.
To use the OFBiz XML utilities, import the org.ofbiz.base.util* package.
The following program demonstrates creating, writing to, and reading from an XML document using OFBiz utilities.
Note: The following program is for demonstration purposes only. It will compile and run within an OFBiz instance. However, much of the logic is hardcoded. This is intentional. Only enough code is shown to illustrate the handling of XML files.
/* Don't forget to import org.w3c.dom.Document; import org.w3c.dom.Element; import org.xml.sax.SAXException; import org.ofbiz.base.util.*; */ public static String basicXmlExamples(HttpServletRequest request, HttpServletResponse response...
Change the font size
Change margin width
Change background colour