PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Array items
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
HRecordToXML (Function)
In French: HEnregistrementVersXML
ODBCNot available with this kind of connection
Retrieves the structure and the value of the current record and exports them into a character string in XML format.
Note: This function can be used on the data files and on the queries.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 22 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
New in version 22
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Example
// Exports the current record found in the last file used
sXML is string = HRecordToXML()
// Exports the current record of "Customer" file
sXML is string
sXML = HRecordToXML(Customer)
// Exports the current record of "Customer" file
// Note: only the NAME and NUMBER items are taken into account
sXML is string
sXML = HRecordToXML(Customer, "NAME,NUMBER")
Syntax
<Result> = HRecordToXML([<File Name> [, <List of Items> [, <Charset>]]])
<Result>: Ansi character string
Structure and value of the current record in XML format. This structure has the following format:
<FILE>
<ITEM1> data of item 1 </ITEM1>
<ITEM2> data of item 2 </ITEM2>
<ITEM3> data of item 3 </ITEM3>
...
</FILE>
<File Name>: Optional character string (with or without quotes)
Logical name of the HFSQL data file used or logical name of the query used. If this parameter is not specified, the last HFSQL data file used will be taken into account.
<List of Items>: Optional character string (with quotes)
Name of the items to export.
If several items are specified, the name of the items must be separated by a comma.
The Composite Key items, Binary Memo items or Binary items are ignored.
If this parameter is not specified or if it corresponds to an empty string (""), all the items are exported (except Composite Key items, Binary Memo items and Binary items) in the physical order of description.
<Charset>: Integer constant
Versions 15 and later
Character set that will be used to generate the XML file:
charsetAnsiRoman characters in ANSI standard
charsetArabicArabic characters
charsetBalticBaltic characters
charsetChineseChinese characters (People's Republic of China)
charsetTraditionalChineseTraditional Chinese characters (Republic of Taiwan)
charsetKoreanKorean characters
charsetDefaultUses the default character set defined for the computer. No character set is forced.
charsetEastEuropeCharacters of Eastern Europe (Polish, ...)
charsetGreekGreek characters
charsetHebrewHebrew characters
charsetJapaneseJapanese characters
charsetOccidentalRoman characters in ANSI standard
charsetUTF8Used to manage the countries with two character sets (Hong Kong) and the countries with no character set defined in Windows (Georgian and Armenian).
charsetRussianRussian characters
charsetThaiThai characters
charsetTurkishTurkish characters
charsetVietnameseVietnamese characters
New in version 15
Character set that will be used to generate the XML file:
charsetAnsiRoman characters in ANSI standard
charsetArabicArabic characters
charsetBalticBaltic characters
charsetChineseChinese characters (People's Republic of China)
charsetTraditionalChineseTraditional Chinese characters (Republic of Taiwan)
charsetKoreanKorean characters
charsetDefaultUses the default character set defined for the computer. No character set is forced.
charsetEastEuropeCharacters of Eastern Europe (Polish, ...)
charsetGreekGreek characters
charsetHebrewHebrew characters
charsetJapaneseJapanese characters
charsetOccidentalRoman characters in ANSI standard
charsetUTF8Used to manage the countries with two character sets (Hong Kong) and the countries with no character set defined in Windows (Georgian and Armenian).
charsetRussianRussian characters
charsetThaiThai characters
charsetTurkishTurkish characters
charsetVietnameseVietnamese characters
Character set that will be used to generate the XML file:
charsetAnsiRoman characters in ANSI standard
charsetArabicArabic characters
charsetBalticBaltic characters
charsetChineseChinese characters (People's Republic of China)
charsetTraditionalChineseTraditional Chinese characters (Republic of Taiwan)
charsetKoreanKorean characters
charsetDefaultUses the default character set defined for the computer. No character set is forced.
charsetEastEuropeCharacters of Eastern Europe (Polish, ...)
charsetGreekGreek characters
charsetHebrewHebrew characters
charsetJapaneseJapanese characters
charsetOccidentalRoman characters in ANSI standard
charsetUTF8Used to manage the countries with two character sets (Hong Kong) and the countries with no character set defined in Windows (Georgian and Armenian).
charsetRussianRussian characters
charsetThaiThai characters
charsetTurkishTurkish characters
charsetVietnameseVietnamese characters
Remarks

Array items

If one of the exported items is an array item, each element of the array item is exported in a new level:
<FILE>
<ITEM1> data of item 1 </ITEM1>
<ITEM2> data of item 2 </ITEM2>
<ARRITEM>
<ARRITEM_1> data of element 1 </ARRITEM_1>
<ARRITEM_2> data of element 2 </ARRITEM_2>
<ARRITEM_3> data of element 3 </ARRITEM_3>
</ARRITEM>
...
</FILE>
Reminder: The Composite Key items, Binary Memo items or Binary items are ignored.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230hf.dll
Java wd230java.jar
Linux wd230hf.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment