|
|
|
|
|
- Using a tag associated with a namespace
- XML functions and threads
XMLNamespace (Function) In french: XMLNamespace Returns the prefix of the namespace associated with the current tag in an XML document. MonDoc is string
MonDoc = fLoadText("Exemple.xml")
XMLDocument("exemple", MonDoc)
IF ErrorOccurred = True THEN
Error("Le fichier n'est pas au format XML")
RETURN
END
IF XMLFirst() = True THEN
IF XMLNamespace() <> "" THEN
Info("Le préfixe utilisé pour l'espace de nommage est : " + XMLNamespace(), ...
"L'URI correspondante est : " + XMLNamespaceURI())
ELSE
IF ErrorOccurred = True THEN
Info("L'élément lu n'est pas une balise")
ELSE
Info("La balise ne contient pas d'espace de nommage")
END
END
END
XMLClose()
Syntax
<Result> = XMLNamespace([<XML document>])
<Result>: : Character string - Prefix of namespace used for the current tag,
- Empty string (""):
- if the tag does not have a naming prefix.
- if the XML document is not positioned on a tag. The ErrorOccurred variable is set to True.
<XML document>: : Optional character string Name of XML document to use. This document contains the XML code and it was created by XMLDocument. If this parameter is not specified, XMLNamespace applies to the last XML document used in the current thread. Remarks Using a tag associated with a namespace XML functions and threads If your application uses threads, the XML document is shared between all these threads. For more details on threads, see Managing threads. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|