|
|
|
|
|
XMLFindNamespaceByName (Function) In french: XMLChercheNamespaceParNom Finds an XML namespace according to its XML node and in the parents of the node.
gcDocumentXML is xmlDocument
gcDocumentXML = XMLOpen("c:\temp\fichier.xml", fromFile)
cNoeud is xmlNode = gcDocumentXML..RootNode[1]
cNamespace is xmlNamespace = XMLFindNamespaceByName(cNoeud, "monnamepace")
IF ErrorOccurred = True THEN
Info("Le namespace n'a pas été trouvé.")
ELSE
Info("Namespace trouvé : ", cNamespace.URI)
END
Syntax
<Result> = XMLFindNamespaceByName(<XML node> , <Namespace name>)
<Result>: xmlNamespace variable Namespace corresponding to the sought name. <XML node>: xmlNode variable Name the xmlNode variable that corresponds to the node of the XML document from which the search is performed. <Namespace name>: Unicode string Name of namespace to find. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|