Jump to content

Question on XML


prichardson
 Share

Recommended Posts

Can you automatically turn data into xml without coding it? Is there an xml generator that is free and easy to download?Is it easy to make an xml generator?I would like to be able to automaticlly add a new video to the playlist without having to go and hand-code it. The CDATA needs to be in-place because i have the video and a static image. Is it possible to spit out data collected from a form into an xml page without coding?

Link to comment
Share on other sites

XML is a format that is used for many things, so it can't be just "generated". A program needs to know what you need the XML file to contain at minimum. For that, there's another language called XML Schema (and there are alternatives - DTD, RelaxNG) that tell exactly that to programs. They also allow other programs to actually reject the file if it doesn't meet the criteria described in the XML Schema.XML generators exist in popular XML editors such as Stylus Studio and AltovaXMLSpy, but they both require the presence of Schema for the reason described above.As easy as it is to make an XML and Schema aware application in general, and maybe some extra hardness on top. In other short: it depends.OK. Do editors specialized for your type of XML exist? What exactly is the language in the XML file? RSS? If so, there are many editors. If not... well... say the name, and I'll look. If there are none, you'll have to make such yourself. How easy it will be depends very much on what you can use and how complex the language is.No. At least not before someone else codes it for you. But with no coding at all... impossible.

Link to comment
Share on other sites

Hi and Thanks for replying to my question.I have a video playlist and the main objective in the question i asked was that when a user wants to add a new viseo to the playlist - to automatically generate the code from a form or database to generate the xml code for the playlist- in another way to spit out the data that the user has of the video either from a form or database and spit it out into the xml code- without me having to code the new video manually in the xml document.How can i in an cms for a user to update the playlist with the new video without manually coding in the cxml code?

Link to comment
Share on other sites

By using any S3L at your disposal. For example, in PHP, you could use DOM or SimpleXML. Actually, you can use DOM almost everywhere. That is, you'll create a special server side page that will take the data from the form and turn it into the desired XML.

Link to comment
Share on other sites

Are you saying that to be able to accomplish to dynamically update/insert new video to the playlist I would need a program that has been designed to do the job?Is there any program that is currently out on the internet that is free to easily install?This code below is what i would like to be generated - when a new video is uploaded in the CMS to add the video to the playlist with the xml code - how best to achive this- or is it possible to do at all?P.S. I code in asp

<video>		<title><![CDATA[<img src='<%=ApplyXMLFormatting(rsVideo("Video_Image_Caption_Path").Value)%>' hspace='<%=ApplyXMLFormatting(rsVideo("Video_Image_Caption_HSpace").Value)%>' vspace='<%=ApplyXMLFormatting(rsVideo("Video_Image_Caption_VSpace").Value)%>'> <span class='videoTitle'><%=ApplyXMLFormatting(rsVideo("Video_Title").Value)%></span><br> <span class='colons'>Length:</span><span class='videoDescriptionTime'> <%=ApplyXMLFormatting(rsVideo("Video_Time").Value)%></span>]]></title>	 		<file><![CDATA[<%=strURLPath%>assets_cm/files/video/<%=ApplyXMLFormatting(rsVideo("Video_Path").Value)%>]]></file>	</video>

Link to comment
Share on other sites

ASP. That's what I wanted to hear. Well, what I meant is that you need to use ASP (ASP is a S3L after all) to generate the XML document from POST data and maybe (just maybe) even automatically update the existing file. How exactly... I don't know. I'm not much into ASP. But it can do that, that's for sure. And I don't know if any premade applications would exist for that, but I'm guessing not, as what you want should be relatively simple, provided you know ASP enough.

Link to comment
Share on other sites

Can you automatically turn data into xml without coding it? Is there an xml generator that is free and easy to download?Is it easy to make an xml generator?I would like to be able to automaticlly add a new video to the playlist without having to go and hand-code it. The CDATA needs to be in-place because i have the video and a static image. Is it possible to spit out data collected from a form into an xml page without coding?
Can you automatically turn data into xml without coding it? Yes you can but than you have to use tool like apache velocity- which again a kind of language.but if you want to add or update than you not need coding, one or two lines.Is there an xml generator that is free and easy to download?No, sorryIs it easy to make an xml generator?yes its easy, but that will not be standard. I mean XML is mark-up languagewhich means- language used to define another language. so your generated XML will be called what ??which language you are generating ??? so- if you generating standard language like WSDL, BPEL than you can find editor to generateif not, than who cares your generated XML file.until is exceptional case.I would like to be able to automaticlly add a new video to the playlist without having to go and hand-code it. The CDATA needs to be in-place because i have the video and a static image. Is it possible to spit out data collected from a form into an xml page without coding?Didn't get what actually you want to ask, a kind of hacking thing ???
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...