com.calitha.xml
Class ProcessingInstructions
java.lang.Object
com.calitha.xml.ProcessingInstructions
public class ProcessingInstructions
- extends Object
A ProcessingInstructions object represents the processing instructions in
an XML document. These instructions must have simple name=value attributes.
- Author:
- Robert van Loenhout
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProcessingInstructions
public ProcessingInstructions(Document doc)
- Creates a new ProcessingInstructions object by examining the nodes in the document.
- Parameters:
doc - XML document
- Throws:
IllegalArgumentException - if any argument is null
getValue
public String getValue(String nodeName,
String attributeName)
- Gets the value of an attribute in a processing instruction.
- Parameters:
nodeName - name of the nodeattributeName - name of the attribute
- Returns:
- attribute value