Goal: Build a simple web app that allows users to edit a VoIP phone config file (xml) by choosing Radio Buttons with corresponding values.
- Clock Display ( 12hr | 24hr )
- Display Name: “John Smith”
- Allow Admin: ( 0 || 1 ) - 0-Default 1-Admin
When a user makes a decision, it changes the value in the XML file. After all options are chosen the xml file will be printed to the screen for the user to copy/paste.
A lot of answer I found involve using node.js, jquery, or something else to manipulate the DOM. The issue is I can’t figure out a way to load the XML file into a variable. The XML code has a lot of html-esque code that affects me leading it into the html file itself. I’ve tried encapsulating it in code/pre tags (and one I forgot) but this made it even harder to add to variables/elements.
Where would I start?
Can someone help point me in the right direction? I’m also looking to pair program if anyone is interested. I have a c9 account we can use. Also anyone willing to just mentor/work with me on this would be greatly appreciated.