Здавалка
Главная | Обратная связь

GetAttribute(NodeName,AttributeName)



Try to retreive the value of a node's attribute

NodeName - The node

AttributeName - The attribute's name

Возвращает - The value of the attribute

GetInnerText(NodeName)

Return the specified property of the node

NodeName - The node from which we look for the property

Возвращает - The value of the property

GetInnerXML(NodeName)

Return the specified property of the node

NodeName - The node from which we look for the property

Возвращает - The value of the property

GetNode(DocumentOrNode,XPath)

Return the first node that match the XPath query, as a native object

DocumentOrNode - The document or node from which the search starts

XPath - The XPath query to a node

Возвращает - The matching node, as a native object

GetNodeName(NodeName)

Return the specified property of the node

NodeName - The node from which we look for the property

Возвращает - The value of the property

GetNodes(DocumentOrNode,XPath)

Save all the elements matching the XPath query in an array, as native objects

DocumentOrNode - The document or node from which the search starts

XPath - The XPath query to the nodes

Возвращает - The array containing all matching elements

GetNodeValue(NodeName)

Return the specified property of the node

NodeName - The node from which we look for the property

Возвращает - The value of the property

GetOuterXML(NodeName)

Return the specified property of the node

NodeName - The node from which we look for the property

Возвращает - The value of the property

InsertCopyOfNode(NewParentNode,NodeToCopy,Position)

Append a new child to an existing node

NewParentNode - The new parent node

NodeToCopy - The node to add in the new parent node

Position - -1 or the position of the new child in the parent

LoadXMLFile(FileName)

Create an XML document from a file

FileName - The location of your XML file

Возвращает- An XML document, as native object

LoadXMLString(XML)

Create an XML document from a XML string

XML - A string containing an XML document

Возвращает - An XML document, as a native object

SaveDocument(DocH,FileName)

Save an XML document into a file

DocH - The document, as a native object

FileName - The file where to save the document

Возвращает - "Истина"/"Ложь"

SetAttribute(NodeName,AttributeName,AttributeValue)

Try to set the value of a node's attribute

NodeName - The node

AttributeName - The attribute's name

AttributeValue- The new value

SetInnerText(NodeName,Value)

Set the specified property of the node

NodeName - The node from which we look for the property

Value - The value of the property

SetInnerXML(NodeName,Value)

Set the specified property of the node

NodeName - The node from which we look for the property

Value - The value of the property

SetNodeValue(NodeName,Value)

Set the specified property of the node

NodeName- The node from which we look for the property

Value- The value of the property


Samples







©2015 arhivinfo.ru Все права принадлежат авторам размещенных материалов.