AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos XML
  • Properties specific to the xmlNamespace variables
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Ejemplo
// 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")
Propiedades

Properties specific to the xmlNamespace variables

The following properties can be used to define the characteristics of xmlNamespace variables:
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 order of iteration is not necessarily the order in which attributes are declared in the document (attributes are generally listed in character set order)..
Versión mínima requerida
  • Versión 15
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local