XML Style EDI file creation

10 views
Skip to first unread message

ed briseño

unread,
Feb 14, 2026, 1:14:59 PM (6 days ago) Feb 14
to Bots Open Source EDI Translator
Hello. 

Its been a couple of years since I've used bots. 

I created an xml file that looks this format and it works to generate the EDI file.  

<?xml version="1.0" encoding="utf-8"?>
<message>
<recid>5639863372</recid>
<invoiceno>CIN1635233</invoiceno>
<invoicedate >20260202</invoicedate>
<orderno>SON1035425</orderno>
<ordertype>Sales</ordertype>
<orderdate>20260202</orderdate>
<purchaseorderno>9982997590</purchaseorderno>
</message>

But when I use this XML format below it gives me an error stating it does not recognize the element. it does not like the space and underscore. 
example: <recid _

<?xml version="1.0" encoding="utf-8"?>
<message>
<recid _="5639863372"/>
<invoiceno _="CIN1635233"/>
<invoicedate _="20260202"/>
<orderno _="SON1035425"/>
<ordertype _="Sales"/>
<orderdate _="20260202"/>
<purchaseorderno _="9982997590"/>
</message>

Is there a setting I can use to generate the EDI file using the second for?

Edgar

Klaas Feenstra

unread,
Feb 15, 2026, 12:20:44 AM (6 days ago) Feb 15
to bots...@googlegroups.com
Create a new grammar, or remove the underscore in a preprocessing 

--
You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/botsmail/051642ab-04b3-4a49-9283-158e418d52ean%40googlegroups.com.

Akhilesh Kumar

unread,
Feb 19, 2026, 5:49:02 AM (yesterday) Feb 19
to bots...@googlegroups.com
In the first XML <recid> tag has a value
<recid>5639863372</recid>

In 2nd XML it's attribute within the tag and not the value after the tag.
<recid _="5639863372"/>

Not sure if a new grammar to accept such format would be helpful but better would be to pre-process such file and convert into 1st type standard XML format.
This is not a Bots issue. 

Hope that's helpful.

Thanks,
Akhilesh Kumar


Reply all
Reply to author
Forward
0 new messages