|
|||||||||
| Home >> All >> com >> [ sonoma overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.sonoma
Class XMLUtility

java.lang.Objectcom.sonoma.XMLUtility
- public class XMLUtility
- extends java.lang.Object
Utility 'helper' that handles XML operations to create, load, save, and add to documents. Other classes and JSP pages use this object instead of Xerces or XML. XMLUtility.java
- Version:
- 1.1 04/7/2002
| Field Summary | |
private org.w3c.dom.Document |
doc
|
protected java.lang.String |
filename
|
private org.w3c.dom.Node |
ndDocRoot
|
| Constructor Summary | |
XMLUtility()
Creates new XMLUtility |
|
| Method Summary | |
org.w3c.dom.Node |
createTextElement(org.w3c.dom.Document doc,
java.lang.String partName,
java.lang.String value)
creates a new node based on the partName and value |
org.w3c.dom.Node |
createTextElement(java.lang.String partName,
java.lang.String value)
Deprecated. |
org.w3c.dom.Node |
getNode(org.w3c.dom.Document doc,
java.lang.String XPathQuery)
Returns an XML node object from the XPath query |
org.w3c.dom.Document |
loadDoc(java.lang.String strFileName)
Loads an XML file |
boolean |
saveDoc(org.w3c.dom.Document doc,
java.lang.String strFileName)
This function is not yet working! There seems to be some buffer size issues Use the XMLDocumentWriter instead (for now) |
java.lang.String |
setAdmin(java.lang.String sFileName,
java.lang.String userName,
java.lang.String password)
setLogin should be moved to a security class Different from set Login. |
org.w3c.dom.Node |
setDocRootNode()
Deprecated. |
private org.w3c.dom.Node |
setDocRootNode(java.lang.String fileName)
|
java.lang.String |
setLogin(java.lang.String sFileName,
java.lang.String userName)
setLogin should be moved to a security class |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
filename
protected java.lang.String filename
ndDocRoot
private org.w3c.dom.Node ndDocRoot
doc
private org.w3c.dom.Document doc
| Constructor Detail |
XMLUtility
public XMLUtility()
- Creates new XMLUtility
| Method Detail |
setDocRootNode
public org.w3c.dom.Node setDocRootNode()
- Deprecated.
- Set a document root and return a node - not supported!
- Set a document root and return a node - not supported!
setDocRootNode
private org.w3c.dom.Node setDocRootNode(java.lang.String fileName)
loadDoc
public org.w3c.dom.Document loadDoc(java.lang.String strFileName)
- Loads an XML file
setLogin
public java.lang.String setLogin(java.lang.String sFileName, java.lang.String userName)
- setLogin should be moved to a security class
setAdmin
public java.lang.String setAdmin(java.lang.String sFileName, java.lang.String userName, java.lang.String password)
- setLogin should be moved to a security class
Different from set Login. Using a password actually gives permissions to do stuff
createTextElement
public org.w3c.dom.Node createTextElement(java.lang.String partName, java.lang.String value)
- Deprecated.
- Deprecated. Creates a new node based on the partName and value
- Deprecated. Creates a new node based on the partName and value
createTextElement
public org.w3c.dom.Node createTextElement(org.w3c.dom.Document doc, java.lang.String partName, java.lang.String value)
- creates a new node based on the partName and value
getNode
public org.w3c.dom.Node getNode(org.w3c.dom.Document doc, java.lang.String XPathQuery)
- Returns an XML node object from the XPath query
saveDoc
public boolean saveDoc(org.w3c.dom.Document doc, java.lang.String strFileName)
- This function is not yet working! There seems to be some buffer size issues
Use the XMLDocumentWriter instead (for now)
|
|||||||||
| Home >> All >> com >> [ sonoma overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.sonoma.XMLUtility