IPWorks Encrypt 2020 iOS Edition

Questions / Feedback?

referenceXMLElement (property)

This property specifies XML element to sign or verify using XPath notation.

Syntax

- (NSString*)referenceXMLElement:(int)referenceIndex;
- (void)setReferenceXMLElement:(int)referenceIndex:(NSString*)newReferenceXMLElement;
public func referenceXMLElement(referenceIndex: Int32) throws -> String
public func setReferenceXMLElement(referenceIndex: Int32, newReferenceXMLElement: String) throws -> Void

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.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Encrypt 2020 iOS Edition - Version 20.0 [Build 8155]