| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--PTXMLWrapper
   
Deprecated wrapper class providing a single API for accessing a sub-set of the XML parser functionality provided by MSXML, the Netscape 6 DOMParser, and the PTXMLParser (use PTXMLDocument instead).
  
Deprecated This class has been deprecated.  Use PTXMLDocument instead.  Author Patrick Corcoran  
Defined in PTXML.js
Requires:
| Field Summary | |
   <static>  <final> Number | 
   NODE_ATTRIBUTE
   Represents an element attribtute XML node  | 
   
   <static>  <final> Number | 
   NODE_CDATA_SECTION
   Represents a CDATA node  | 
   
   <static>  <final> Number | 
   NODE_COMMENT
   Represents a comment node  | 
   
   <static>  <final> Number | 
   NODE_DOCUMENT
   Represents a document node  | 
   
   <static>  <final> Number | 
   NODE_DOCUMENT_FRAGMENT
   Represents a document fragment node  | 
   
   <static>  <final> Number | 
   NODE_DOCUMENT_TYPE
   Represents a document type node  | 
   
   <static>  <final> Number | 
   NODE_ELEMENT
   Represents an element node  | 
   
   <static>  <final> Number | 
   NODE_ENTITY
   Represents a entity reference node  | 
   
   <static>  <final> Number | 
   NODE_ENTITY_REFERENCE
   Represents a entity node  | 
   
   <static>  <final> Number | 
   NODE_NOTATION
   Represents a notation node  | 
   
   <static>  <final> Number | 
   NODE_PROCESSING_INSTRUCTION
   Represents a processing instruction node  | 
   
   <static>  <final> Number | 
   NODE_TEXT
   Represents a text node  | 
   
   <static>  <final> Object | 
   VERSION
    | 
   
| Constructor Summary | |
      
	 
	    PTXMLWrapper 
	 
	 ()
      
      PTXMLWrapper Object constructor  | 
|
| Method Summary | |
	 
	     Object
	 
       | 
      
	 
	    
	       cloneNode(node)
	 
	 Copies a new element from an existing element in an XML DOM  | 
   
	 
	     Object
	 
       | 
      
	 
	    
	       createNewNodeUIDs(node)
	 
	 Creates a UIDs for each nodes in a node hierarchy.  | 
   
	 
	     Element
	 
       | 
      
	 
	    
	       createNode(node,name,val)
	 
	 Creates a new element in the XML  | 
   
	 
	     void
	 
       | 
      
	 
	    
	       deleteNode(node)
	 
	 Removes a node from the node hierarchy and memory.  | 
   
	 
	     String
	 
       | 
      
	 
	    
	       genXML(xmlObject)
	 
	 Generates the XML contained in an object's DOM hierarchy  | 
   
	 
	     Object
	 
       | 
      
	 
	    
	       getAttribute(node,val)
	 
	 Gets the value of the specified attribute from the specified node  | 
   
	 
	     Array
	 
       | 
      
	 
	    
	       getElementsByTagName(node,tagName)
	 
	 Get elements by tag name  | 
   
	 
	     Object
	 
       | 
      
	 
	    
	       getNodeByUID(uid,node)
	 
	 Returns the node possessing the specified unique id  | 
   
	 
	     String
	 
       | 
      
	 
	    
	       getNodeName(node)
	 
	 Gets the name of the node, if any.  | 
   
	 
	     Object
	 
       | 
      
	 
	    
	       getNodeValue(node)
	 
	 Gets the value of the contents of a node.  | 
   
	 
	     String
	 
       | 
      
	 
	    
	       getUID(node)
	 
	 Gets the unique id associated with a node  | 
   
	 
	     void
	 
       | 
      
	 
	    
	       init(pref,ignoreNamespaces,requireXSL)
	 
	 Initializes the PTXMLWrapper  | 
   
	 
	     Object
	 
       | 
      
	 
	    
	       newXMLFromString(str)
	 
	 Returns a parser object loaded with the specified XML string  | 
   
	 
	     Object
	 
       | 
      
	 
	    
	       selectSingleNode(node,val)
	 
	 Applies a XPath query value to a node context to retrieve a single Node from a DOM hierarchy.  | 
   
	 
	     void
	 
       | 
      
	 
	    
	       setNodeValue(node,val)
	 
	 Sets the value of a node  | 
   
| Field Detail | 
<static> <final> Number NODE_ATTRIBUTE
<static> <final> Number NODE_CDATA_SECTION
<static> <final> Number NODE_COMMENT
<static> <final> Number NODE_DOCUMENT
<static> <final> Number NODE_DOCUMENT_FRAGMENT
<static> <final> Number NODE_DOCUMENT_TYPE
<static> <final> Number NODE_ELEMENT
<static> <final> Number NODE_ENTITY
<static> <final> Number NODE_ENTITY_REFERENCE
<static> <final> Number NODE_NOTATION
<static> <final> Number NODE_PROCESSING_INSTRUCTION
<static> <final> Number NODE_TEXT
<static> <final> Object VERSION
| Constructor Detail | 
PTXMLWrapper()
| Method Detail | 
Object cloneNode(node)
node -  the node to be cloned  
      Object createNewNodeUIDs(node)
node -  the starting node to create new node UIDs.  
      Element createNode(node,name,val)
node -  node under which the new element will be appended  
      name -  the name of the new element  
      value -  the text value contained in the new element  
      void deleteNode(node)
node -  the node to be deleted    
      String genXML(xmlObject)
xmlObject -  an DOM XML object  
      Object getAttribute(node,val)
node -  the node with the requested attribute  
      val -  the name of the attribute  
      Array getElementsByTagName(node,tagName)
node -  the starting node to search for elements  
      tagName -  the name of the element's tag  
      Object getNodeByUID(uid,node)
uid -  the unique id  
      node -  the  root node to start searching for the unique id.  
      String getNodeName(node)
node -  the node  
      Object getNodeValue(node)
node -  a valued node  
      String getUID(node)
node -  the node  
      void init(pref,ignoreNamespaces,requireXSL)
pref -  preferred parser type (MSXML, NS6, PTXML)  
      ignoreNamespaces -  ignore XML namespaces in XML to be parsed  
      requireXSL -  true if the parser requires an XSL document    
      Object newXMLFromString(str)
str -  an XML string  
      Object selectSingleNode(node,val)
node -  the starting node for the XPath query  
      val -  an XPath query parameter of the form "/node/subnode/subsubnode/"  
      void setNodeValue(node,val)
node -  the node  
      value -  the value to set on the node    
      
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||