Help: ideas or "a canvas" to create a. efx translator for php language #1238
-
Dear All, I read that the sdk has a translator but I don't knwo java. Any template or a sort of canvas to follow in order to solve the problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @fabiodisconzi 👋 Thanks for your question — your project sounds very interesting! From what I understand, your goal is to translate ✅ Suggested approach Understand the structure of .efx templates Write a PHP parser to read .efx files Extract XPath expressions from the .efx Use those XPath expressions to build PHP functions
🧪 Example "canvas" in PHP
Example usage: 🔧 Tip If someone in the community has already written a .efx → PHP translator, that could be a good starting point. But if not, your effort might become the first! Let me know if you'd like help with a working prototype — I'd be glad to assist! |
Beta Was this translation helpful? Give feedback.
Hi @fabiodisconzi 👋
Thanks for your question — your project sounds very interesting!
From what I understand, your goal is to translate
.efx
templates (used in the eForms SDK) into PHP functions using XPath to extract data from XML notices. You're not familiar with Java, so you're looking for a kind of "starter template" or "canvas" in PHP to help you get going✅ Suggested approach
You could try the following steps:
Understand the structure of .efx templates
.efx files are usually XML files themselves, describing how to extract certain information from eForms XML notices using XPath.
Write a PHP parser to read .efx files
You can use SimpleXMLElement or DOMDocument in PHP to load and parse …