Bug dans XML ?
Publié : ven. 07/août/2015 11:41
Je n'arrive pas à mettre un espace dans le nom d'un noeud XML.
Et vous ?
ERREUR
PAS ERREUR
M.
Et vous ?
ERREUR
Code : Tout sélectionner
; Création d'un arbre xml
xml = CreateXML(#PB_Any)
mainNode = CreateXMLNode(RootXMLNode(xml), "Zoo")
SetXMLNodeName(mainNode, "Zoo")
; Création du premier noeud
item = CreateXMLNode(mainNode, "Animal 1")
;SetXMLNodeName(item, "Animal 1")
SetXMLAttribute(item, "id", "1")
SetXMLNodeText(item, "Elephant")
; Création du second noeud
item = CreateXMLNode(mainNode, "Animal 2")
;SetXMLNodeName(item, "Animal 2")
SetXMLAttribute(item, "id", "2")
SetXMLNodeText(item, "Tigre")
; Enregistre l'arbre XML dans le fichier spécifié.
SaveXML(xml, "c:\demo.xml")
RunProgram("c:\demo.xml")
Code : Tout sélectionner
; Création d'un arbre xml
xml = CreateXML(#PB_Any)
mainNode = CreateXMLNode(RootXMLNode(xml), "Zoo")
SetXMLNodeName(mainNode, "Zoo")
; Création du premier noeud
item = CreateXMLNode(mainNode, "Animal 1")
SetXMLNodeName(item, "Animal1")
SetXMLAttribute(item, "id", "1")
SetXMLNodeText(item, "Elephant")
; Création du second noeud
item = CreateXMLNode(mainNode, "Animal 2")
SetXMLNodeName(item, "Animal2")
SetXMLAttribute(item, "id", "2")
SetXMLNodeText(item, "Tigre")
; Enregistre l'arbre XML dans le fichier spécifié.
SaveXML(xml, "c:\demo.xml")
RunProgram("c:\demo.xml")