Help / WLanguage / WLanguage functions / Standard functions / XML file functions
  • Properties specific to the description of the xmlNamespace variables
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
The xmlNamespace type is used to handle the XML namespace of a node attribute in an XML document.
The namespace allows you to use in the same XML document attributes with the same name and different definition or several attributes with the same name on a given node.
This type of variable is used by:
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
// Adds into a tag the "xsi" entry and a "xsd" reference in order to get:
// <?xml version="1.0" encoding="UTF-8"?>
// <DocumentTag xmlns:xsi=""
// xsi:noNamespaceSchemaLocation="YourFile.xsd">
// Example
// <Next>
// Example for xmlNamespace type
// </Next>
// </DocumentTag>
MyXMLDoc is xmlDocument
nNamespace is xmlNamespace
nNode is dynamic xmlNode
nNode = MyXMLDoc.DocumentTag
MyXMLDoc.DocumentTag = "Example"
nNamespace..Name = "xsi"
nNamespace..URI = ""
Add(nNode..NamespaceDeclared, nNamespace)
nNode:noNamespaceSchemaLocation..Value = "YourFile.xsd"
nNode:noNamespaceSchemaLocation..Namespace = nNamespace
MyXMLDoc.DocumentTag.Next = "Example for xmlNamespace type"
XMLSave(MyXMLDoc, fExeDir() + ["\"] + "test.xml")
ShellExecute(fExeDir() + ["\"] + "test.xml")

Properties specific to the description of the xmlNamespace variables

The following properties can be used to handle a xmlNamespace variable:
NameType usedEffect
NameCharacter stringName of the namespace in the XML document.
This name is used in the XML source code to prefix the ambiguous attributes.
URICharacter stringLocation of the definition of the namespace.
Minimum version required
  • Version 15
This page is also available for…
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help