Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
blockly > FieldVariable > toXml
Méthode FieldVariable.toXml()
Sérialisez ce champ au format XML.
Signature :
toXml(fieldElement: Element): Element;
Paramètres
Paramètre |
Type |
Description |
fieldElement |
Élément |
Élément à renseigner avec des informations sur l'état du champ. |
Renvoie :
Élément
Élément contenant des informations sur l'état du champ.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/25 (UTC)."],[[["The `FieldVariable.toXml()` method serializes the field's state into an XML element for storage and retrieval."],["It takes an existing XML element as input and populates it with information about the field."],["The method returns the populated XML element, containing data about the field variable."]]],["The `FieldVariable.toXml()` method serializes a field's state into XML. It takes an `Element` as input (`fieldElement`) and populates it with the field's state information. The method returns the same `Element`, now containing the serialized field data. This method is used to convert the field's internal state into an XML representation.\n"]]