phax / ph-ubl

Java library for reading and writing UBL 2.0, 2.1, 2.2, 2.3 and 2.4 (CS01) documents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

question about extension content

jpaezlancheros opened this issue · comments

Hi Phillip

I have a question in ubl element ExtensionContent when I put in any (.setAny()) a custom element (Colombia) for instance "DianExtensionsType" the result xml is interrupted and not written . is there any consideration to have?

if I create a Dom document and add the node with setAny() as is in scratch example, it works well, but in the case i use an XmlType it doesn't.

The simplest way is to create an DianExtensionsType instance and marshal it to a DOM Element.
Than just pass the Element to setAny.

I am not sure if there is another way to do it - I use it in the same way.

Thanks. I figure it out.
By the way added these https://www.dian.gov.co/impuestos/factura-electronica/Documents/Caja-de-Herramientas-Nomina-Electronica-V1-0.zip documents to dianUBL (UBL for colombia)

Okay great. As I don't speak Spanish, can you give a brief description what that excatly is? Thanks

oh, they added two documents to Dian Ubl documents (custom document really)
-nominaIndiviudual (pay roll receipt)
-nominaIndividualDeAjuste (pay roll adjust)

they use some elements of ubl. but thats it. defined in XSL folder

Ah cool. So you mean I could add them to the library:)

This will be fixed in 6.6.1 - than the namespaces are forced to "sts" for the DianExtension