PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of the xmlNamespace variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
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:
Note: See Declaring a variable for more details.
Versions 17 and later
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
WINDEVJava This type of variable is now available for the Java applications.
Android This type of variable is now available for the Android applications.
Android This type of variable is now available from Android version 2.2.
New in version 17
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
WINDEVJava This type of variable is now available for the Java applications.
Android This type of variable is now available for the Android applications.
Android This type of variable is now available from Android version 2.2.
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
WINDEVJava This type of variable is now available for the Java applications.
Android This type of variable is now available for the Android applications.
Android This type of variable is now available from Android version 2.2.
Versions 21 and later
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
Example
// 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="http://www.w3.org/YourUrl"
// 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 = "http://www.w3.org/YourUrl"
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")
Remarks

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.
AndroidJava Caution: The iteration order is not necessarily the order in which the attributes are declared in the document (in most cases, the attributes are listed in alphabetical order).
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment