Plands.com Logo  Business Internet Services 
Main Menu
Home
Planetary CRM
  Benefits
  Features
  Demo
E-Mail Services
  E-mail Hosting
  Newsletters
  Discussion Lists
Web Hosting
Server Co-location
and Administration
Web Applications
Technical Support
Contact Us
DXP Samples
 
DxpHome  ||   Samples  ||   Details  ||   Docs  ||   Trees  ||   xml-xsl  ||   Links
// DxpNodeLinker.java

DxpNodeLinker creates a DxpPage from a .dxp source file. This is an XML file that contains a mix of HTML tags, char data and special <dxp:tags>. The dxp tags are compiled into Objects. The other page content is stored as Cdata Objects which are nodes that contain static char data. Tag Objects from other packages can be implemented in this system as well. More on this later.

The DxpNodeLinker uses a SAXParser to parse the file and implements callback methods the parser needs to send data back as it parses the source file.

The DxpNodeLinker should only be used by one thread at a time because it keeps global class variables and so does the SAXParser it uses. In the DxpServlet the call to parseFile() is wrapped in a synchronized block so only one thread can parse at a time. An Object Pool similar to a DbPool is another option.


@author Mark Ashworth
@version 0.1, 3/15/2001

Return to Index

Note: We have tried to test all of the code examples but they may contain errors. Any questions, comments, suggestions, or problems should be sent to info@plands.com.