FoxPro/Visual FoxPro - vfp6 crear xml

 
Vista:

vfp6 crear xml

Publicado por Danny (4 intervenciones) el 13/01/2012 19:03:53
Hola
Me podrian ayudar con esto

- <seller>
- <IDE type="FACT">
<GAB>0000103766</GAB>
</IDE>
</seller>

esto es lo que estoy trabtando de hacer

- <seller>
<IDE type="FACT">0000103766</IDE>
</seller>

Podrian ayudar esto es lo que estoy usando.

nseller = oroot.appendChild( cfdxml.createNode("ELEMENT","seller",""))
IDE = oroot.appendChild( cfdxml.createNode("ELEMENT","IDE",""))
IDE.setAttribute("type","FACT")
IDE.appendChild(cfdxml.createElement("GAB"))
IDE.lastChild.text = "0000103766"
nseller.appendchild(IDE)

Saludos,
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder