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/26 (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/26 (UTC)."],[[["\u003cp\u003eRepresents an XML namespace and provides methods for interacting with it.\u003c/p\u003e\n"],["\u003cp\u003eIncludes methods to retrieve the prefix (\u003ccode\u003egetPrefix()\u003c/code\u003e) and URI (\u003ccode\u003egetURI()\u003c/code\u003e) associated with the namespace.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003egetPrefix()\u003c/code\u003e and \u003ccode\u003egetURI()\u003c/code\u003e methods return string values representing the respective namespace components.\u003c/p\u003e\n"]]],[],null,["Namespace\n\nA representation of an XML namespace. \n\nMethods\n\n| Method | Return type | Brief description |\n|-----------------------------|-------------|------------------------------------|\n| [getPrefix()](#getPrefix()) | `String` | Gets the prefix for the namespace. |\n| [getURI()](#getURI()) | `String` | Gets the URI for the namespace. |\n\nDetailed documentation \n\n`get``Prefix()` \nGets the prefix for the namespace.\n\nReturn\n\n\n`String` --- the prefix for the namespace\n\n*** ** * ** ***\n\n`get``URI()` \nGets the URI for the namespace.\n\nReturn\n\n\n`String` --- the URI for the namespace"]]