Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

WD22 - XML Node prefix (no replies)

$
0
0
Hi,
i use an xml schema named "FatturaElettronica", the schema is this:

[drive.google.com]

The code i use is this:

FatEle is xmlDocument, description = FatturaElettronica

NamSpace is xmlNamespace
Node is dynamic xmlNode
Node = FatEle.FatturaElettronica


NamSpace..Name = "xsi"
NamSpace..URI="[www.w3.org];
Add(Node..NamespaceDeclared,NamSpace)
Node:schemaLocation..Value="[ivaservizi.agenziaentrate.gov.it] [www.fatturapa.gov.it];
Node:schemaLocation..Namespace=NamSpace

NamSpace..Name = "ds"
NamSpace..URI="[www.w3.org];
Add(FatEle.FatturaElettronica..NamespaceDeclared,NamSpace)

NamSpace..Name = "p"
NamSpace..URI="[ivaservizi.agenziaentrate.gov.it];
Add(FatEle.FatturaElettronica..NamespaceDeclared,NamSpace)

FatEle.FatturaElettronica:versione="FPR12"

"OTHER CODE TO ADD DATA"

XMLSave(FatEle,sNomefile,XMLFormatting)

The result is this:

[drive.google.com]

What is the method to add a prefix "p" to root "FatturaElettronica"???
I'm going crazy

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>