Wednesday, 28 August 2013

are the methods and properties of XML DOM ? Explain with examples.

The methods of XML DOM are:
Method
Description
Aborts an asynchronous download in progress.
Cancels the current HTTP request.
Cancels the current HTTP request.
Cancels the current HTTP request.
Adds a new schema to the schema collection and associates the given namespace URI with the specified schema.
Adds schemas from another collection into the current collection and replaces any schemas that collide on the same namespace URI.
Adds objects to a style sheet.
Adds parameters to a style sheet.
Appends a new child node as the last child of the node.
Appends the supplied string to the existing string data.
Clones a copy of the current IXMLDOMSelection, with the same position and context.
Clones a new node.
Creates a new attribute with the specified name.
Creates a CDATA section node that contains the supplied data.
Creates a comment node that contains the supplied data.
Creates an empty IXMLDOMDocumentFragmentobject.
Creates an element node using the specified name.
Creates a new EntityReference object.
Creates a node using the supplied type, name, and namespace.
Creates a processing instruction node that contains the supplied target and data.
Creates a rental-model IXSLProcessor object that will use this template.
Creates a text node that contains the supplied data.
Returns the parameter value for a given index.
Deletes specified data.
Sets a global property for the DLL.
Returns a read-only XML Document Object Model (DOM) node that contains the <Schema> element.
he properties of XML DOM are:

Property
Description
attributes
Contains the list of attributes for this node. Read-only.
childNodes
Contains a node list containing the children (for nodes that can have children). Read-only.
documentElement
Contains the root element of the document. Read/write.
firstChild
Contains the first child of this node. Read-only.
implementation
Contains the IXMLDOMImplementationIXMLDOMImplementation Object (C#) for this document. Read-only.
lastChild
Contains the last child of this node. Read-only.
length(IXMLDOMNamedNodeMap)
Indicates the number of items in the collection. Read-only.
length (IXMLDOMNodeList)
Indicates the number of items in the collection. Read-only.
name
Contains the attribute name. Read-only.
nextSibling
Contains the next sibling of this node in the parent's child list. Read-only.
nodeName
Contains the qualified name of the element, attribute, or entity reference, or a fixed string for other node types. Read-only.

No comments:

Post a Comment