Filip Brnic
Programmer
Hello everyone, I've been stuck on this for some time, I didn't really create xmls through fox, and neither did i work with them that much, i understand the syntax and the rules that i should open and close the tag, so now I'm confused why my code is giving me errors. I've used an example code from one other programmer, but he isn't coming anytime soon so I've tried to create it myself since there is a new law in Serbia that requires this xml.
Long story short i need to create the XML with this exact schema, values are gonna differ because they are gonna go directly from our program, this is the link to that xml: https://eotpremnica.efaktura.gov.rs/extfile/sr/5452/eOtpremnica UBL pr 001.xml
Now here is my code:
I think i made a mistake in defining those prefixes in my code, but i don't really understand why it doesn't work,
Because when i checked the code from my programmer and tried to run his xml, it worked just fine
I hope someone knows where I've made a mistake, if you want you can just copy my code into a prg and try in yourself, the values aren't from any tables for now so it should work, but again opening it on a browser is where it gets funky
* I had to attach it as a txt file because i cant attach prgs.
Long story short i need to create the XML with this exact schema, values are gonna differ because they are gonna go directly from our program, this is the link to that xml: https://eotpremnica.efaktura.gov.rs/extfile/sr/5452/eOtpremnica UBL pr 001.xml
Now here is my code:
I think i made a mistake in defining those prefixes in my code, but i don't really understand why it doesn't work,
Because when i checked the code from my programmer and tried to run his xml, it worked just fine
I hope someone knows where I've made a mistake, if you want you can just copy my code into a prg and try in yourself, the values aren't from any tables for now so it should work, but again opening it on a browser is where it gets funky
* I had to attach it as a txt file because i cant attach prgs.
Attachments
Last edited: