| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--PTXMLDocument
   
A thin wrapper over an XMLDocument, providing various cross browser methods.
  
Defined in PTXML.js
   
| Field Summary | |
   <static>  <final> Number | 
   ATTRIBUTE_NODE
   Represents an element attribtute XML node  | 
   
   <static>  <final> Number | 
   CDATA_SECTION_NODE
   Represents a CDATA node  | 
   
   <static>  <final> Number | 
   COMMENT_NODE
   Represents a comment node  | 
   
   <static>  <final> Number | 
   DOCUMENT_FRAGMENT_NODE
   Represents a document fragment node  | 
   
   <static>  <final> Number | 
   DOCUMENT_NODE
   Represents a document node  | 
   
   <static>  <final> Number | 
   DOCUMENT_TYPE_NODE
   Represents a document type node  | 
   
   <static>  <final> Number | 
   ELEMENT_NODE
   Represents an element node  | 
   
   <static>  <final> Number | 
   ENTITY_NODE
   Represents a entity node  | 
   
   <static>  <final> Number | 
   ENTITY_REFERENCE_NODE
   Represents a entity reference node  | 
   
   <static>  <final> Number | 
   NOTATION_NODE
   Represents a notation node  | 
   
   <static>  <final> Number | 
   PROCESSING_INSTRUCTION_NODE
   Represents a processing instruction node  | 
   
   <static>  <final> Number | 
   TEXT_NODE
   Represents a text node  | 
   
   <static>  <final> Object | 
   VERSION
    | 
   
| Constructor Summary | |
      
	 
	    PTXMLDocument 
	 
	 (doc)
      
      PTXMLDocument Object Constructor  | 
|
| Method Summary | |
	 
	     Object
	 
       | 
      
	 
	    
	       appendChild(node)
	 
	 Appends a child node to the document  | 
   
	 
	     Element
	 
       | 
      
	 
	    
	       createElement(elementName)
	 
	 Creates a new element  | 
   
	 
	     Element
	 
       | 
      
	 
	    
	       getDocumentElement()
	 
	 Returns the documentElement node of the document  | 
   
	 
	     Array
	 
       | 
      
	 
	    
	       getElementsByTagName(tagName)
	 
	 Get elements by tag name  | 
   
	 
	     Object
	 
       | 
      
	 
	    
	       getUnderlyingObject()
	 
	 Gets the underlying document object  | 
   
	 
	     Object
	 
       | 
      
	 
	    
	       importNode(node, deep)
	 
	 Creates a copy of a node in a DOM hierarchy  | 
   
	 
	     void
	 
       | 
      
	 
	    
	       loadFromString(str)
	 
	 Loads the document from an XML String  | 
   
	 
	     String
	 
       | 
      
	 
	    
	       serializeToString()
	 
	 Serializes the document to an XML string  | 
   
	 
	    <static> Object
	 
       | 
      
	 
	    
	       getAttributeValue(node,attrName)
	 
	 Gets the value of the specified attribute from the specified node  | 
   
	 
	    <static> Object
	 
       | 
      
	 
	    
	       getNodeValue(node)
	 
	 Gets the value of the contents of a node.  | 
   
	 
	    <static> Object
	 
       | 
      
	 
	    
	       selectSingleNode(contextNode,expr)
	 
	 Applies a XPath query value to a node context to retrieve a single Node from a DOM hierarchy.  | 
   
| Field Detail | 
<static> <final> Number ATTRIBUTE_NODE
<static> <final> Number CDATA_SECTION_NODE
<static> <final> Number COMMENT_NODE
<static> <final> Number DOCUMENT_FRAGMENT_NODE
<static> <final> Number DOCUMENT_NODE
<static> <final> Number DOCUMENT_TYPE_NODE
<static> <final> Number ELEMENT_NODE
<static> <final> Number ENTITY_NODE
<static> <final> Number ENTITY_REFERENCE_NODE
<static> <final> Number NOTATION_NODE
<static> <final> Number PROCESSING_INSTRUCTION_NODE
<static> <final> Number TEXT_NODE
<static> <final> Object VERSION
| Constructor Detail | 
PTXMLDocument(doc)
the -  XMLDocument object to wrap. if not specifried, a new one will be created  Author Stephan Morais  
     | Method Detail | 
Object appendChild(node)
node -  the node to be appended
      Element createElement(elementName)
then -  name of the element  
      Element getDocumentElement()
Array getElementsByTagName(tagName)
tagName -  the name of the element's tag  
      Object getUnderlyingObject()
Object importNode(node, deep)
node -  the node to be cloned  
      deep -  if true, any children of the node will be cloned as well.  
      Object - 
      void loadFromString(str)
str -  an XML string    
      String serializeToString()
<static> Object getAttributeValue(node,attrName)
node -  the node with the requested attribute  
      attrName -  the name of the attribute  
      <static> Object getNodeValue(node)
node -  a valued node  
      <static> Object selectSingleNode(contextNode,expr)
contextNode -  the starting node for the XPath query  
      expr -  an XPath query parameter of the form "/node/subnode/subsubnode/"  
      
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||