ReferenceXMLElement Property
This property specifies XML element to sign or verify using XPath notation.
Object Oriented Interface
public function getReferenceXMLElement($referenceindex); public function setReferenceXMLElement($referenceindex, $value);
Procedural Interface
ipworksencrypt_xmlsig_get($res, 18 , $referenceindex); ipworksencrypt_xmlsig_set($res, 18, $value , $referenceindex);
Default Value
'/'
Remarks
This property specifies XML element to sign or verify using XPath notation. When signing, this must be set before calling Sign. When verifying, this must be set from within the SignatureInfo event. The ReferenceURI property may be used to help identify the correct XML element.
/root/myElement | XPath syntax |
/root/[1] | XPath syntax using an index |
/root/ns:myElement | XPath syntax where the element has a namespace |
myElement | Just the element name |
@id=myid | Attribute selector: This will select an element with an attribute "id" whose value is "myid". |
/root/myElement[1]/ns:name2[@attr=attrValue] | XPath syntax using an index and attribute selector |
The $referenceindex parameter specifies the index of the item in the array. The size of the array is controlled by the ReferenceCount property.
This property is not available at design time.
Data Type
String