PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • XML functions and threads
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
XMLRestorePosition (Function)
In french: XMLRetourPosition
Restores the previously saved context of an XML document (XMLSavePosition). The current filter when saving the position can be restored (the filter is implemented by XMLFind).
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
IF XMLDocument("MyXMLDoc", XMLCode) = True THEN
// Find the links
XMLFind("MyXMLDoc", "a", XMLTag)
WHILE XMLFound("MyXMLDoc") = True
IF XMLChildExist("MyXMLDoc", XMLAttribute) = True THEN
TheXMLPosition is int = XMLSavePosition("MyXMLDoc")
XMLChild("myXMLDoc")
Trace(XMLData("MyXMLDoc"))
// Process
XMLRestorePosition("MyXMLDoc", TheXMLPosition, XMLRPFilter)
END
// Next element in the search
XMLNext("MyXMLDoc")
 END
END
Syntax
<Result> = XMLRestorePosition(<XML document> , <Position> [, <Options>])
<Result>: Integer
  • True if the position is restored,
  • False otherwise (the ErrorOccurred variable is set to True). To find out the error details, use ErrorInfo.
<XML document>: Character string (with quotes)
Name of XML document used. This document contains the XML code to study and it was created by XMLDocument.
<Position>: Integer
Position to restore. This position was returned by XMLSavePosition.
<Options>: Optional constant (or combination of constants)
Used to configure the restore operation:
XMLRPKeepThe position is not freed (other calls to XMLRestorePosition can be performed on this position).
XMLRPDefault
(default value)
The position is freed. The stored position is restored.
XMLRPFilterRestores the filter implemented by XMLSavePosition.
Remarks

XML functions and threads

If your application uses threads, the XML document is shared between all these threads. See Managing threads for more details.
Component : wd240xml.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment