How to create a XML file using JSP/HTML and XSLT - html

I've already created some html code using a XML file and based on a XSLT template.
Howerver, this time I need to create an inverse process (i.e., based on HTML code, create a XML file).
Plus, I need to create some quiz like:
Personal Info
Name:___
Age:____
etc... with input tags and stuff like that in a JSP file (or HTML). Then, after an user interaction and click on submit, this form need to create a XML file with this schema
<Personal Info>
<name>...</name>
<age>...</age>
...
</Personal Info>
In the future, this XML doc will be inserted in Form attribute on Java, through Controller, and persisted in database.
Thanks
João Vicente

One way is to use java script for reading the user inputs from html and build xml.

Related

Read HTML in Progress4GL

Is there a library or a way to read HTML files in Progress4GL?
I want to read a HTML file specifically a <table> tag within in, and capture that data as a list of items in a temp-table.
This website offers a way of converting the HTML table to a CSV file, but if possible I want to do this within my ABL session.
I eventually found a solution to this by using the INPUT STREAM FROM statement and creating a temp-table record for each line of the HTML file.
https://help.consultingwerkcloud.com/openedge/117/rfi1424920545278.html

How to add XML data to Wix page?

I am trying to create a webpage or page element that will read and display the data from an external XML data feed. I can't seem to find documentation on their site that will help and I am very new to this.
This is the XML url generated: https://spacedout.ampsuite.com/xml/releases?cid=2&s_date=2018-01-01&e_date=2019-01-11&order=release_date&dir=desc&limit=10
And this is an example of how I would like it displayed: https://client.ampsuite.com/
Pretty much just the section under "featured releases" that lists current music releases.
You can use wixCode backend function in order to do that. All you need is to use the wix-fetch API to get the data, then you can parse the XML using xml-js (which is a node module you can install in the backend).
In your client code you'll need to call your backend function and then inject the results to something like a repeater / table element on your UI.

Can we save from/input data to same html file

I have a requirement where I need to produce data in table format and send the html file to team.
For example:
Column 1
list of jobs running
I have created the above with the help of HTML table.
I need to add another column "Remarks" where user can update their remarks and save the html file and share it with the team.
Is it possible with HTML, if yes may I know how to achieve this ?
I am new to HTML, please excuse me if my question is silly.
No.
HTML is a data format. You need a programming language.
Typically this would be handled by using an HTML form, which POSTs data to an HTTP server where server-side code (written in the programming language of your choice) would store it in a database.
The HTML document with the table would be rendered on demand using data from the database.
Normally, you would share a URL to the HTTP server rather than the HTML document itself (although you could download it and then share it).
Yes , it is possible to make changes to your own html but you need a scripting language to do so.
I would recommend you to use Javascript which allows you to change html tags values based on the user input.
using the document.getElementById().innerHTML you can easily change the value of html tags..
Here is a link which will expalin this topic much more elaborately.
https://www.w3schools.com/jsref/prop_html_innerhtml.asp

how to retrieve the data from xml and display it in table in html

I wanted to develop a small search website where I will be storing the data in XML files. When we search anything, it should display those data as table format in html. How does one retrieve the data from XML files?
Below is the basic thing to display data of only two columns, but I want to display data dynamically:
html file:http://www.w3schools.com/xml/xml_applications.asp
This is the sample code for retrieving the data from xml only for two columns.
Well the first problem I see is that you have two functions in there that are not being called. Nothing programmatic will happen in this scenario. When you have a method you need to call said method with myFunction(). I would recommend reading up a little more on javascript instead of copying and pasting it and expecting it to just "work"
To further elaborate, you removed the function call from the example you took when you took off the button. What is your xml endpoint? (it's not going to be the same as the example unless you build it to be that way). In this example it's just an xml file that is hosted on the server with the same root as the html.

XML to XSLT transformation

Dear friends,
We are developing healthcare app which will monitory patient data from remote and display the patient EcG in dynamic graphs is my requirement , basically I am new to XML and XSLT. so what I wanted to know how to transfer the xml EcG data into xslt so that then in linux xsltproc command can transfer xsl file into html file and I can view in browser.
Basic example I know but graphics like lines chat I am confusing how to do ?
please if any one knows let me know thanks in advance. any reference or any links or any example is also ok and great if any one shares.
You don't transfer your XML data to XSLT. With XSLT you can define a stylesheet which defines how to transform XML data (to HTML in your case). So you apply XSLT stylesheet to your XML data.
When you have your XSLT defined, you can use xsltproc like this:
xsltproc stylesheet.xsl myData.xml
You can start with this tutorial to get some idea how it works. (Click "Try it yourself" to see an example of an XML document, XSLT stylesheet and the result)
For graphics like bar chart, pie chart and so on you need java script help which would take your generated XML as input and pass some parameters to javascript which has the ability to produce graphics for you. You can also check FusionCharts on http://www.fusioncharts.com/products/suite/?gclid=CI71hJqsjbUCFVEX6wodPgYAeg