com.calitha.xml
Class ProcessingInstructions

java.lang.Object
  extended by 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

Constructor Summary
ProcessingInstructions(Document doc)
          Creates a new ProcessingInstructions object by examining the nodes in the document.
 
Method Summary
 String getValue(String nodeName, String attributeName)
          Gets the value of an attribute in a processing instruction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

getValue

public String getValue(String nodeName,
                       String attributeName)
Gets the value of an attribute in a processing instruction.

Parameters:
nodeName - name of the node
attributeName - name of the attribute
Returns:
attribute value