Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Take input and generate XML

 
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
Is it possible to create an web-page,form,that would accept specific input and generate
an XML file from it.The form has to have the ability to add items in one particular section(where we can
add additional streams) and give us the ability to remove streams as well.
For each stream we must be able to attach a logo for that stream as well.
We prefer Xojo or Php for this ,I have attached one of the XML files and the data format.


sample XML is like below ,i am being made to paste it like below as was unable to attach it neither in txt,doc or XML format here.


Thanks
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
Ok,Thanks XML experts could you please guide me here.

Thanks
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
any updates by XML experts please?
 
Saloon Keeper
Posts: 6448
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
Why should this not be possible? What do you have so far, and where are you stuck making progress? If you haven't started, what ideas have you had?
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am not sure if it is possible then how can we achieve it may be using some HTML java script?
 
Sheriff
Posts: 21951
106
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Patience is a virtue. Please wait a bit longer before bumping the thread.
 
Tim Moores
Saloon Keeper
Posts: 6448
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
... not to mention that it is a weekend.

What is the exact problem you're stuck with? You talk variously of needing a web page where you can enter a variable number of data items, and of creating or altering XML. Which of these is it? What are the precise inputs and outputs you need? And, as I asked before, what do you have so far? TellTheDetails
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
actually i am not sure where to start it from and how to progress and unable to find start point itself should i write some java script for the same and how can i design a webpage considering this XML and data?
first what should i do then next what should i do then next what should i do to get desired result here so if there is an XML expert who could step by step guide me then it would be much benifitial and i have this XML only with me.
 
Tim Moores
Saloon Keeper
Posts: 6448
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
OK, so the problem is creating a web form that allows a user to enter a variable number of items, and then to create an XML file based on that. Is that an accurate problem description?

Do you have HTML/Javascript skills? Have you created a web page before? Have you created a web page with a form? How about the server side - have you written code that handles an HTML form submission? Have you written code that creates XML? And you want to do this in PHP; not Java? Please answer these with as much detail as you can, so we get a better understanding of what you're stuck with.
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
Yes, I need a webpage created with a form and the code needed for the form submission and the writing of the XML file from the submission.
 No other users will be using it other than the admin.  Hope this helps

The input fields should come from the XML file.Example in the XML file
there is a section where all the streams are listed as ,/lockup> and with
there the image location and title for that stream are listed. Those
are the streams that we make reference to.There is also a description at the beginning of
the XML that defines the description of the category as well.

 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
XML experts could you please advise

thanks..
 
Tim Moores
Saloon Keeper
Posts: 6448
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
If the issue is so important to you that you keep asking about it all weekend, you must have worked on it a lot. Tell us what progress you have made.
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
please see my progress as i have learet to create a web page with form and tested it as well but for this problem i am stuck and not sure how ro progress?

<!DOCTYPE html>
<html>
<head>
       <title>Form</title>

</head>

<body>
     <form>
            First Name:<br />
            <input type="text" />
           
            <br /><br />
            Last Name:<br />
            <input type="text" />
   
            <br /><br />
         
           Phone Number:<br />
           <input type="text" />
 
           <br /><br />
         
         Phone Number:<br />
           <input type="text" />
         <br /><br />
          <input type="submit" />
         
       </form>

    </body>
    </html>
 
Tim Moores
Saloon Keeper
Posts: 6448
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
What is the connection between this form and the XML? None of the form fields is in there.

Are you working on the server side as well? The form element has no action attribute that would tell it where to submit to.
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
no,i just said i have learnt to create a web page with some form fields as shown in previous post but how can i sync it with my problem i mean my problem?
also server side what do i need to program and how could i program because server is hardware right?
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator

John Ken wrote:no,i just said i have learnt to create a web page with some form fields as shown in previous post but how can i sync it with my problem i mean my problem?
also server side what do i need to program and how could i program because server is hardware right?



also after form submission how would XML be written automatically this is also a issue isn't it?
 
Tim Moores
Saloon Keeper
Posts: 6448
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator

no,i just said i have learnt to create a web page with some form fields as shown in previous post but how can i sync it with my problem i mean my problem?


You need to decide on what input fields you need. From the XML it looks like there might a series of 3 elements that go together: a media URL, an image, and a title. Is that correct?

also server side what do i need to program and how could i program because server is hardware right?


The server side of the application consists of the code that will handle the form submission and create the XML. You need to decide what server software you will use, and in what language that code will be. Both Java and PHP are options, amongst many others.

also after form submission how would XML be written automatically this is also a issue isn't it?


That's where the server side code I mentioned comes in - it will handle this. Have you done server-side programming before? In what language, using what server software? What should happen with the XML once it's done - should it be shown to the user, or stored on the server?
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
should i start first doing html page design with these 3 fields and then start server side programming in Java or first start Server side programming then design my HTML page?

I think i should start first designing web page form with those 3 fields right?
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
i designed html page with below fields for this problem like below does it look good?
also it seems space for entering URL in text box is little less considering XML file which has long link so how could i increase it?

<!DOCTYPE html>
<html>
<head>
       <title>Form</title>

</head>

<body>
     <form>
            a media URL:<br />
            <input type="text" />
           
            <br /><br />
            an Image:<br />
            <input type="text" />
   
            <br /><br />
         
           Title:<br />
           <input type="text" />
 
           <br /><br />
         
         
          <input type="submit" />
         
       </form>

    </body>
    </html>
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
also what can i do to ensure no other user should be using it other than admin?

Thanks
 
Tim Moores
Saloon Keeper
Posts: 6448
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
Should the image really be a text field? Or would it make more sense to upload the image? In which case the type would be "file".

See https://www.w3schools.com/html/html_form_attributes.asp for how to size text fields.

It's probably best to develop both parts simultaneously, so you can test them together.

Let's leave security aside for the moment, and focus on functionality.
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
from server side how can i write  a program to update this XML based on this web page form?
also to upload it as a image location i think we should choose text box only or if we are uploading any image then i think type should be file only but then how would i upload it as a file?
Thanks
 
Saloon Keeper
Posts: 12022
257
  • Mark post as helpful
  • send pies
  • Report post to moderator
Do you already know how to set up a web service in PHP? I strongly recommend using Laravel.
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
No Sorry,I don't know but what free open source softwares could i use to make it work?

Thanks
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator

John Ken wrote:No Sorry,I don't know but what free open source softwares could i use to make it work?

Thanks



also in my web page form for field image that should be of type file ,how could i make that a type of file instead of a text box field?

Thanks
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
got some idea should it be like below code:-

<!DOCTYPE html>
<html>
<head>
      <title>Form</title>

</head>

<body>
    <form>
           a media URL:<br />
           <input type="text" />
         
           <br /><br />
           an Image:<br />
           <input type="file" />
 
           <br /><br />
       
          Title:<br />
          <input type="text" />

          <br /><br />
       
       
         <input type="submit" />
       
      </form>

   </body>
   </html>
 
Stephan van Hulst
Saloon Keeper
Posts: 12022
257
  • Mark post as helpful
  • send pies
  • Report post to moderator

John Ken wrote:No Sorry,I don't know but what free open source softwares could i use to make it work?


I already recommended Laravel.

John Ken wrote:also in my web page form for field image that should be of type file ,how could i make that a type of file instead of a text box field?


You literally change the input type from 'text' to 'file'.
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
is laravel a software currently i just have plain java installed on my machine so do i need to configure it as per php software if yes could you please let me know the steps for the same.
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
also i have eclispse and intellij ide installed could i configure it for laravel for php?
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
also installed netbeans ide but not sure how could i use it for webservice php laravel
 
Stephan van Hulst
Saloon Keeper
Posts: 12022
257
  • Mark post as helpful
  • send pies
  • Report post to moderator
Have you googled for Laravel? Have you read its user guide? Have you googled for "Laravel NetBeans" or "Laravel Eclipse"?
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
actually for eclispse laravel so many links coming i am confused now which one to choose,is it any plugin which can be configured with eclipse?
 
Stephan van Hulst
Saloon Keeper
Posts: 12022
257
  • Mark post as helpful
  • send pies
  • Report post to moderator
It looks like PHP Development Tools is enough. The very first link I get when I google on "Eclipse Laravel" explains that the "PHP Project from Composer Package" wizard should be good to get you started with Laravel.
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
ok from that link i downloadecd composer package but when trying to install it's asking 'choose the command line php you want to use' as shown in attached screen shot now what should i do?
Composer-setup.png
[Thumbnail for Composer-setup.png]
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
i tried XAMPP as well but as shown in this link for step no.1 in Control Panel i am not getting any port number there if i click on start button please refr attached screen shot for the same reference.

as there not any port number displayed upon clicking the start button on control panel so as mentioned in this link you tube video i am also unable to get balid URL to test whether PHP is working as per my expectation or not so that i could start server side programming on laravel




https://www.youtube.com/watch?v=AY5qm8XnbkY
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
please refer attached screen shots wih respect to blank port number and invalid URL error.
XAMPP-Control-panel-port-is-blank.png
[Thumbnail for XAMPP-Control-panel-port-is-blank.png]
Invalid-Project-URL.png
[Thumbnail for Invalid-Project-URL.png]
 
Yeah, but does being a ninja come with a dental plan? And what about this tiny ad?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic