Due to requirements of our authorities I have the following XD definition
XD CATALOGO-XML.
01 Catalogo identified by "catalogocuentas:Catalogo" namespace is
"www.sat.gob.mx/esquemas/ContabilidadE/1_1/CatalogoCuentas".
02 XSI-C PIC X(145) identified by "xsi:schemaLocation" is
attribute count in XSI-C-count.
02 XMLNS-C PIC X(45) identified by "xmlns:xsi" is
attribute count in XMLNS-C-count.
02 Ctas-c identified by "catalogocuentas:Ctas".
03 CodAgrup identified by "CodAgrup" is attribute. .
04 CodAgrup-value PIC X(80).
03 NumCta-c PIC X(100) identified by "NumCta" is attribute.
Etc.
---------------------------------------------------------------------------------------------------------------
This DEFINITION produces a good XML file that is accepted by our authorities.
It looks as follows:
<?xml version="1.0" encoding="UTF-8"?>
<catalogocuentas:Catalogo xmlns:catalogocuentas="www.sat.gob.mx/esquemas/ContabilidadE/1_1/CatalogoCuentas" xsi:schemaLocation="www.sat.gob.mx/esquemas/ContabilidadE/1_1/CatalogoCuentas CatalogoCuentas_1_1.xsd" xmlns:xsi="www.w3.org/.../XMLSchema-instance" Version="1.1">
<catalogocuentas:Ctas CodAgrup="100" NumCta="123456" Desc="TEST" SubCtaDe="" Nivel="1" Natur="D"/>
</catalogocuentas:Catalogo>
-------------------------------------------------------------------------------------------
When I omit the prefix “catalogocuentas:” in my namespace definition for writing the file, our authorities do not accept the file, arguing that the prefix is missing. So I need it writing the file.
But if I try to read the just written file with exactly the same XD description, nothing is read.
Only if I build a second XD definition without the prefix “catalogocuentas:” I can read it.
What must I do to use the same XD definition to DO BOTH, write and read the file with the same XD ?
The same thing happens with other prefixes as for example “cfdi:”
000156 03 Emisor identified by "cfdi:Emisor" count in Emisor-count.
Thanks for any help.
Rolf