Main Page | Packages | Class Hierarchy | Class List | Directories | Class Members | Related Pages

org.colimas.services.xml.XMLDOM Class Reference

List of all members.

Public Member Functions

 XMLDOM (String rootName) throws ParserConfigurationException
 XMLDOM (String rootName, String publicId, String systemId) throws ParserConfigurationException
void append (Element eParent, Element eChild)
Element createElement (Element parent, String name)
Element createElement (Element parent, String name, String text)
Element createElement (String name)
org.w3c.dom.Element getCurrentElement ()
Document getDocument ()
XMLParser getParser ()
void replace (Element eParent, Element oldChild, Element newChild)
void setParser (XMLParser parser)
void setRefToXMLSchema (String targetNamespace, String schemaLocation)
void validate () throws Exception

Detailed Description

XMLDOM.java

Function:
parse XML file:Create element,Get Document

Author:
zhao lei
Version:
1.0
Modification History:
 SEQ DATE       ORDER DEVELOPER      DESCRIPTION
 --- ---------- ----- -------------- -----------------------------
 001 2005/12/23          zhao lei       INIT
 


Constructor & Destructor Documentation

org.colimas.services.xml.XMLDOM.XMLDOM String  rootName  )  throws ParserConfigurationException
 

Constructor. Initialize a document with a root node.

Parameters:
rootName The name of the root node.
Exceptions:
ParserConfigurationException Thrown whenever the XML document can not be initiliaze.

org.colimas.services.xml.XMLDOM.XMLDOM String  rootName,
String  publicId,
String  systemId
throws ParserConfigurationException
 

Builds an XML document with a DOCTYPE declaration and a root node.

Parameters:
rootName The name of the root node.
publicId The PUBLIC part of the DOCTYPE declaration.
systemId The SYTEM part of the DOCTYPE declaration (i.e. DTD declaration).
Exceptions:
ParserConfigurationException Thrown whenever the XML document can not be initiliaze.


Member Function Documentation

void org.colimas.services.xml.XMLDOM.append Element  eParent,
Element  eChild
 

Appends a child under a parent.

Parameters:
eParent Parent
eChild Child

Element org.colimas.services.xml.XMLDOM.createElement String  name  ) 
 

Creates an element with its name. If the XMLDOM document has not been created yet, it is created and the returned element is the root element.

Element org.colimas.services.xml.XMLDOM.createElement Element  parent,
String  name,
String  text
 

Insert the method's description here. Creation date: (05/05/2000 21:10:23)

Returns:
org.w3c.dom.Element
Parameters:
parent org.w3c.dom.Element
name java.lang.String
text java.lang.String

Element org.colimas.services.xml.XMLDOM.createElement Element  parent,
String  name
 

Insert the method's description here. Creation date: (05/05/2000 21:08:55)

Returns:
org.w3c.dom.Element
Parameters:
parent org.w3c.dom.Element
name java.lang.String

org.w3c.dom.Element org.colimas.services.xml.XMLDOM.getCurrentElement  ) 
 

Insert the method's description here. Creation date: (10/10/2000 21:07:36)

Returns:
org.w3c.dom.Element

Document org.colimas.services.xml.XMLDOM.getDocument  ) 
 

Insert the method's description here. Creation date: (05/05/2000 21:04:35)

Returns:
com.ibm.xml.parser.TXDocument

XMLParser org.colimas.services.xml.XMLDOM.getParser  ) 
 

Gets the current parser.

Returns:

void org.colimas.services.xml.XMLDOM.replace Element  eParent,
Element  oldChild,
Element  newChild
 

Insert the method's description here. Creation date: (03/09/2000 18:45:46)

Parameters:
eParent org.w3c.dom.Element
eChild org.w3c.dom.Element

void org.colimas.services.xml.XMLDOM.setParser XMLParser  parser  ) 
 

Parameters:
parser 

void org.colimas.services.xml.XMLDOM.setRefToXMLSchema String  targetNamespace,
String  schemaLocation
 

Sets the XML schema declaration

Parameters:
targetNamespace Namespace of the XML schema
schemaLocation Location of the schema.

void org.colimas.services.xml.XMLDOM.validate  )  throws Exception
 

Validate the current state of the XML instance If no parser has been provided then a default one will be used. The validation flag of the parser will be turned on.


The documentation for this class was generated from the following file:
Generated on Sat Jan 14 02:04:37 2006 for Colimas by  doxygen 1.4.4