Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #2  
Antiguo 12-06-2014
Avatar de Al González
[Al González] Al González is offline
In .pas since 1991
 
Registrado: may 2003
Posts: 5.610
Poder: 32
Al González Es un diamante en brutoAl González Es un diamante en brutoAl González Es un diamante en brutoAl González Es un diamante en bruto
Hola, no suelo trabajar con TXMLDocument, pero intentaré ayudar.

Tampoco sé qué es "facturae", pero pareciera que FileHeader, SchemaVersion, Modality e InvoiceIssuerType son elementos que pertenecen al mismo espacio de nombres que el elemento principal, Facturae, por tanto es correcto que lleven también el prefijo "fe".

En caso de que no fueran elementos del mismo espacio de nombres, habría que indicar a qué espacio pertenecen como segundo parámetro de AddChild, o simplemente cadena vacía:
Código Delphi [-]
XMLFileHeader := XMLMain.AddChild('FileHeader', '');
Esto es lo que dice la ayuda de Delphi respecto al método AddChild (remarco la causa de lo que obtuviste):
Cita:
Adds a new child node to this node.

Delphi syntax:

function AddChild(const TagName, NamespaceURI: DOMString; GenPrefix: Boolean = False; Index: Integer = -1): IXMLNode; overload;

function AddChild(const TagName: DOMString; Index: Integer = -1): IXMLNode; overload;

Description

AddChild creates a new element node as the child of this node.

TagName provides the tag name of the newly created node.

NamespaceURI identifies the namespace that includes the new node’s definition. If NamespaceURI is omitted (the second syntax), the namespace of the new node is deduced from the namespace prefix of TagName. If TagName has no namespace prefix and there is no NamespaceURI parameter, the namespace is the same as this node’s NamespaceURI property.

GenPrefix controls whether AddChild generates a namespace prefix for the namespace URI when the NamespaceURI parameter identifies a URI that is not already declared in the document. Note that setting GenPrefix to true does not cause AddChild to add a declaration of the new namespace prefix unless the document’s Options property includes doNamespaceDecl.

Index indicates the position of the child node in this node’s list of children, where 0 is the first position, 1 is the second position, and so on. If Index is –1, the new node is added to the end.

AddChild returns the interface for the newly created child node.

Tip: AddChild only adds element nodes. To add other types of child nodes, use the XML document’s CreateNode method instead, and then add the resulting node to the ChildNodes property array.
Saludos.
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
JvWizardRouteMapNodes nodos personalizados? mrnovice OOP 0 23-10-2008 19:00:29
TCheckTreeView y nodos walito Varios 2 13-01-2008 14:56:18
Problemas con el TreeView y los nodos Gustavo Gowdak OOP 5 23-09-2007 17:44:19
nodos del treeview Buelos Varios 4 04-09-2007 21:54:44
Reccorrer Entre Nodos AGAG4 Varios 2 04-10-2004 19:26:45


La franja horaria es GMT +2. Ahora son las 00:35:15.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi