|
|
|
|
|
- Properties specific to xmlReader variables
xmlReader (Variable type) In french: xmlLecteur
The xmlReader type is used to read an XML document without loading it in memory. The characteristics of this XML document can be read by several WLanguage properties. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. MonNoeud is xmlNode
MonNoeud..Type = XMLTag
MonNoeud..Name = "MonNoeud"
MonNoeud..Text = "Le texte du noeud"
Lecteur is xmlReader = XMLOpenReader("fichier.xml")
FOR EACH Lecteur EN PROFONDEUR
Trace(Lecteur.Type)
END
VariableReset(Lecteur)
Lecteur2 is xmlReader = XMLOpenReader("fichier.xml")
FOR EACH x OF Lecteur2
IF Lecteur2.Type = XMLReaderStartTag _OR_ Lecteur2.Type = XMLReaderEmptyElementTag THEN
IF Lecteur2.Name = "config" THEN
FOR EACH y OF x
Trace(x.Nom)
END
END
END
END
VariableReset(Lecteur2)
Properties Properties specific to xmlReader variables The following properties can be used to handle an XML document: | | | Property name | Type used | Effect |
---|
Attribute | Array of xmlAttribute | Array of XML attributes associated with the node. | Depth | Integer | Depth of current element in the XML treeview. This property is read-only. | Name | Unicode string | Name of node. This property is read-only. | Namespace | xmlNamespace variable | Namespace of node This property is read-only. | NamespaceDeclared | Array of xmlNamespace | Array of XML namespaces declared by the node. | Type | Integer | Type of XML node: - XMLReaderNo: Current element does not correspond to a node.
- XMLLecteurBaliseDébut Start of tag.
- XMLLecteurBaliseFin End of tag.
- XMLLectorEmptyTag: Empty tag.
- XMLLecteurCDATA CDATA section.
- XMLReaderComments Comments.
- XMLReaderEntity Declaration of an entity.
- XMLLecteurUnknown Type unknown.
- XMLLecteurProcessingInstruction Processing instruction
- XMLReaderReferenceEntity: Reference to an entity.
- XMLReaderText Text.
- XMLReaderTypeDocument DOCTYPE declaration.
This property is read-only. | Value | Unicode string | Value of node. Note: References to an entity are automatically interpreted.. This property is read-only. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|