Hi all!
I’m dealing with creating XMLs on Xojo.
I know that for create the root child you need to do something like this:
root = xml.AppendChild(xml.CreateElement("Comprobante"))
Well I put “Comprobante” cuz I want this name, but This create a Localname, but what about if I need to create a NAME, I mean with a Prefix.
Like:
cfdi:Comprobante
I’ve seen that exist root.PRFEFIX but its read only.
What Am I missing. :(.
Hilfe
I’m Able to use Prefixes doing this:
root = xml.AppendChild( _
xml.CreateElement("http://www.w3.org/2001/XMLSchema-instance", "cfdi:Comprobante") )
An I got this Result:
<?xml version="1.0" encoding="UTF-8"?>
<cfdi:Comprobante xmlns:cfdi="http://www.w3.org/2001/XMLSchema-instance">
</cfdi:Comprobante>
Its good but what About If I don’t want to say “xmlns:cfdi”, and say “xmlns:xsi” instead?
Isnt what youre talking about called a namespace?