Class PTXMLDocument

Object
   |
   +--PTXMLDocument

class PTXMLDocument


A thin wrapper over an XMLDocument, providing various cross browser methods.
Defined in PTXMLDocument.js


Field Summary
<private>  Object msg
          
<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

msg

<private> Object msg

ATTRIBUTE_NODE

<static> <final> Number ATTRIBUTE_NODE

CDATA_SECTION_NODE

<static> <final> Number CDATA_SECTION_NODE

COMMENT_NODE

<static> <final> Number COMMENT_NODE

DOCUMENT_FRAGMENT_NODE

<static> <final> Number DOCUMENT_FRAGMENT_NODE

DOCUMENT_NODE

<static> <final> Number DOCUMENT_NODE

DOCUMENT_TYPE_NODE

<static> <final> Number DOCUMENT_TYPE_NODE

ELEMENT_NODE

<static> <final> Number ELEMENT_NODE

ENTITY_NODE

<static> <final> Number ENTITY_NODE

ENTITY_REFERENCE_NODE

<static> <final> Number ENTITY_REFERENCE_NODE

NOTATION_NODE

<static> <final> Number NOTATION_NODE

PROCESSING_INSTRUCTION_NODE

<static> <final> Number PROCESSING_INSTRUCTION_NODE

TEXT_NODE

<static> <final> Number TEXT_NODE

VERSION

<static> <final> Object VERSION

Constructor Detail

PTXMLDocument

PTXMLDocument(doc)

Method Detail

appendChild

Object appendChild(node)

createElement

Element createElement(elementName)

getDocumentElement

Element getDocumentElement()

getElementsByTagName

Array getElementsByTagName(tagName)

getUnderlyingObject

Object getUnderlyingObject()

importNode

Object importNode(node, deep)

loadFromString

void loadFromString(str)

serializeToString

String serializeToString()

getAttributeValue

<static> Object getAttributeValue(node,attrName)

getNodeValue

<static> Object getNodeValue(node)

selectSingleNode

<static> Object selectSingleNode(contextNode,expr)


Documentation generated by JSDoc on Tue Sep 21 02:04:06 2010