Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 03-28-2007, 05:35 AM first timer in xml
Skilled Talker

Posts: 70
Name: rex
Trades: 0
i have this situation:
i was given an api written in xml. the purpose of the api is store data to an external server. and the data is coming from an html form encoded by the user. my Q is how am i going to transfer the data coming from <form> going to xml fields?

and what to do to send this xml file to the server? im really new to this..so guys i need ur advice
shotokan99 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-28-2007, 06:05 AM Re: first timer in xml
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Well, XML is nothing more than a specially formatted text file, describing a structure of datas.

You can write it "manually", simply parsing the post fields, or you can use functions like xmlWriter to ease up the job.
See an exemple there:
http://www.php.net/manual/en/ref.xmlwriter.php#64484

As for saving the datas, you must ask the people who run the service you are submitting ths xml.
It could be via a web service (like SOAP, or REST), via a form submit, or opening and writing to a specific socket on their server.....
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 03-28-2007, 06:16 AM Re: first timer in xml
Skilled Talker

Posts: 70
Name: rex
Trades: 0
i wanted to have a <form> so that i can validate the entry of users. out of these data gathered from a form i will create an xml document. i already have the structure of the xml doc they want. in validating i will be using javascript and php.

-what is the best way to write this xml doc...via php or javascript?
-with reg to my first Q, the recipient of xml doc should be the one to inform me how am i going to submit the doc?

tnx a lot man..things got clear to me now
shotokan99 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to first timer in xml
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11830 seconds with 12 queries