You are here

public static function RestWSFormatXML::setXMLReference in RESTful Web Services 7

Same name and namespace in other branches
  1. 7.2 restws.formats.inc \RestWSFormatXML::setXMLReference()
2 calls to RestWSFormatXML::setXMLReference()
RestWSFormatXML::addToXML in ./restws.formats.inc
Adds the data of the given wrapper to the given XML element.
RestWSFormatXML::createResource in ./restws.formats.inc
Creates a new resource.

File

./restws.formats.inc, line 297
RESTful web services module formats.

Class

RestWSFormatXML
A formatter for XML.

Code

public static function setXMLReference(DOMElement $node, $resource, $id) {
  $node->nodeValue = restws_resource_uri($resource, $id);
  $node
    ->setAttribute('resource', $resource);
  $node
    ->setAttribute('id', $id);
}