...
Array<Xml> myXml.Sync(xpath: string, input: Array<Xml>, hash: (node: Xml) => string, removedElementsremovedNodes: Array<Xml>)
Arguments
string xpath
...
Hash function to compare nodes. Can be omitted.
Instance of array to add removed nodes. Can be omitted.
Remarks
Synchornization is based on input nodes and performs following actions on specified xpath;
...
Code Block | ||
---|---|---|
| ||
$Xml.SelectAll('Standards/Standard', function() { var questions = $XmlRepository.QueryXml('for $q in InternalAudit//Question\ where $q/Standards/Standard/Standard=$standard and $q/Departments/Department=$department\ return\ <Question>\ { $q/Id }\ { $q/Criteria }\ { $q/Expectation }\ </Question>', { standard : this.Evaluate('Standard'), department : $Xml.Evaluate('Department') }); this.Sync('Questions/Question', questions, function() { return this.Evaluate('Id'); }); }); |
Remarks
Synchornization Synchronization is based on input nodes and performs following actions on specified xpath;
...