xml

problem in playlist when we select the different songs

Actually in my website www.musicking.in when the user selects songs one player window will open and that will access the corresponding selected songs xml playlist and the player will play those songs. actually its working fine. but sometimes the problem is when so many users are accesiing the player not playing the songs selected, eithe...

how to access xml file?

Actually in my website www.musicking.in when the user selects songs one player window will open and that will access the corresponding selected songs xml playlist and the player will play those songs. actually its working fine. but sometimes the problem is when so many users are accesiing the player not playing the songs selected, eithe...

Can you specify format for XmlSerialization of a datetime?

I need to serialize / deserialize a datetime into yyyyMMdd format for an XML file. Is there an attribute / workaround I can use for this? ...

C# Datagridview - Convert TextColumn to ComboBoxColumn

Hello! I have a windows forms application containing a datagridview control. The datagridview is populated by the contents of an xml file. At the moment, all of the columns are displayed as datagridviewtextboxcolumns. I want to select one that is populated by a particular xml tag and display it's content in a datagridviewcomboboxcolumn a...

Forms authentication for xml files

Hi, I was wondering if you could protect xml files through forms authentication in ASP.NET 3.5. I have some licensekeys that are found online, but you shouldn't be able to download them unless you are logged on. For aspx pages this works automatically but not for xml files. ...

Use ampersand in CAST in SQL

The following code snippet on SQL server 2005 fails on the ampersand '&': select cast('<name>Spolsky & Atwood</name>' as xml) Does anyone know a workaround? Longer explanation, I need to update some data in an XML column, and I'm using a search & replace type hack by casting the XML value to a varchar, doing the replace and updating ...

XSLT question. How to pair field tags with data when original XML has them in separate sections?

I hope I don't lose anyone by mentioning Filemaker. I am trying to turn it's XML export into something usable by SSIS. FM's native XML export has field names and data in separate sections of the same XML file. This lists what I need it to do, what I currently did, and the original FM export at the bottom for reference. I have not see...

Flash: ComboBox and List filled with XML data, then create links

Hello World! I am looking to generate a ComboBox with a list from xml, and then create links from those items. Secondly, I would like to to the same, but with a list and a second xml property. ComboBox - with the list being the "name" property. http://hpn-marketing.com/drmc/content/index.php/specialty/flashxml/ List - with the ...

ASP.NET JSON web service always return the JSON response wrapped in XML

I saw a similar question but it did not resolve my issue. I have a JSON web service in an ASMX file; The code for the web method [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string GetUserRoles(string JSONUserCode) { string retRoles = string.Empty; List...

Parsing XML using PHP

Hiya, I've consistently had an issue with parsing XML with PHP and not really found "the right way" or at least a standardised way of parsing XML files. Firstly i'm trying to parse this: <item> <title>2884400</title> <description><![CDATA[ ><img width="126" alt="" src="http://userserve-ak.last.fm/serve/126/27319921.jpg" ...

Using XSLT to output multiple files

I'm trying to get an example that I found for using XSLT 2.0 to output multiple files working. Using Saxon B 9.7.0.1 with Java 1.6, I get this error: C:\Documents and Settings\Administrator\Desktop\saxon>java -jar saxon9.jar -s:input.xml -xsl:transform.xml Error on line 15 of transform.xml: java.net.URISyntaxException: Illegal charac...

How to parse xml files with nokogiri and put the results in a new file?

Hello all, I'm just beginning with Nokogiri and have a question, hope you guys can help me out: 1) I need to parse a set of xml files (let's say 5 files). 2) Find elements with specific value (for instance, City = "London"), with XPATH. 3) Have a new xml file, with the results of the previous xpath parsing. ...

XSLT and XML Question

I have this kinda interesting requirement. Typically you use XSLT to transform an XML document. The transformed HTML is viewable in a web browser, this works just great. I am also guessing the browser handles the transformation in memory, because if you view the page source of an xml document with XSLT, you don't see html, only xml. ...

What is the practical purpose of XML, that MySQL does not have?

I am interested in XML. I know it from Google's CSE. It is often a pain for me to manipulate 3000-rows XML files. This raises a question. Why does Google use XML, not MySQL, such that I need to manipulate large XML -files? ...

Writing Logs to an XML File with .NET

I am storing logs in an xml file... In a traditional straight text format approach, you would typically just have a openFile... then writeLine method... How is it possible to add a new entry into the xml document structure, like you would just with the text file approach? ...

Do you memorize the tags in your XML configuration?

Do you guys memorize the tags in your XML configurations particularly in Java? Do you guys memorize the tags in web.xml, in your Ant configuration files, in your Spring configuration files? Also do you code them by hand or do you have an IDE and a reference with you? I'm a noob wanting to know how the pros do it :) ...

Format XML String to Print Friendly XML String

I have an XML string as such: <?xml version='1.0'?><response><error code='1'> Success</error></response> There are no lines between one element and another, and thus is very difficult to read. I want a function that formats the above string: <?xml version='1.0'?> <response> <error code='1'> Success</error> </response> Without resor...

problem with single xml file when we select the different songs

Actually in my website www.musicking.in when the user selects songs one player window will open and that will access the corresponding selected songs xml playlist and the player will play those songs. actually its working fine. but sometimes the problem is when so many users are accesiing the player not playing the songs selected, eithe...

Parsing Last.fm feed onto website using PHP

I'm trying to parse the Last.fm feed of my last 10 tracks played onto my website. This is what I have so far, <?php $doc = new DOMDocument(); $doc->load('http://ws.audioscrobbler.com/1.0/user/nathanjmassey/recenttracks.xml'); $arrFeeds = array(); foreach ($doc->getElementsByTagName('track') as $node) { $itemRSS = array ( '...

how to store a xml file into mysqldatabase and retrieve it?

I have generated a XML file automatically from the below code. if (isset($_POST["song"])&& $_POST['song'] != "") { $song = $_POST["song"]; } else { $song = array(); } $dom = new DOMDocument("1.0"); // display document in browser as plain text // for readability purposes // create root element $root = $dom->createElement("playl...