Interacting with a complex XML file
Posted: Mon Oct 12, 2020 1:19 pm
Hi folks
Been a while since I have been on the forum but still here!!
I deal with quite complex and "rich" source XML files that are the contents of book chapters. My knowledge of XML and particularly the XML in question is very limited (but I have colleagues who can help if needed).
I need to enter some simple content (a few words) within the XML files, but not to interfere with the current content and tags. To use in LiveCode, I prefer to have simple HTML, so that I can use HTMLText, and use all the nifty text manipulation and highlighting features that I have. It is not hard to go from the XML to HTML, but the problem is going back to the original XML and putting back the complex tags.
Alternatively I can view the content using some special CSS files in a browser window, but then I cannot interact with the browser widget.
Sorry if I am bing a bit vague, but any ideas welcome. Happy to give more details.
Been a while since I have been on the forum but still here!!
I deal with quite complex and "rich" source XML files that are the contents of book chapters. My knowledge of XML and particularly the XML in question is very limited (but I have colleagues who can help if needed).
I need to enter some simple content (a few words) within the XML files, but not to interfere with the current content and tags. To use in LiveCode, I prefer to have simple HTML, so that I can use HTMLText, and use all the nifty text manipulation and highlighting features that I have. It is not hard to go from the XML to HTML, but the problem is going back to the original XML and putting back the complex tags.
Alternatively I can view the content using some special CSS files in a browser window, but then I cannot interact with the browser widget.
Sorry if I am bing a bit vague, but any ideas welcome. Happy to give more details.