xml

xml parser error in notepadv1 tutorial

I am working on the notpadv1 tutorial. I get an error from the parser as soon as I create a new xml file called note_row.xml and put in the following code: The error is at the end of the file. It says: multiple annotations found at this line premature end of file error parsing XML:no element found I also see the following error in t...

Input data in PHP Url through Post Method in Android

Plz help me to Put data in PHP URL through HTTPPOST Method using Android SDK ...

Displaying inverse numbers when loading Hebrew rss with android ...

Hi , I'm Loading an Hebrew (rtl) xml feed with xml Dom using eclipse android environment. When displaying the feed on TextView text is OK but numbers Displaying inverse for example : if feed (XML) contain 007 it WILL displayed as 700.. any help blessed (: thanks ...

PHP generated XML file to load correct file type in the save as dialog

I have a PHP file called dynamicxml.php that runs a bunch of code, draws data from a database and creates an XML file. When I right-click and save the link for dynamicxml.php?var=test I need the dialog box to select xml as the default file type and rename the file to var.xml: header("Content-type: text/xml"); echo '<?xml version="1.0" e...

XML, SQL Server Compact, or Something Else?

I am developing a desktop application that will need to collect data (from the user) and store it locally in a secure fashion. It will need to synchronize this data with a central database when an internet connection is available. The application is WPF and I would like to take advantage of the new data-binding features of WPF. I really ...

RSS Feed sudden error

I've had these RSS feeds running for some time and have just now run into an issue on one of them. http://www.gamer-source.com/feed/news.xml (doesn't work) and http://www.starcraft-source.com/feed/news.xml (works) Chrome is throwing the error... This page contains the following errors: error on line 20 at column 63: EntityRef: exp...

How can I reconstruct a paginated XML document?

I'm reading from an API that returns paginated XML. The basic format of the API's output is: <candidates.list page="1" next_page="yes"> <candidate /> <candidate /> <candidate /> </candidates.list> My code is like this: while (TRUE) { $xml_str = file_get_contents($dest) $xml = new SimpleXMLElement($xml_str); // What shou...

How can I download an XML file using C#?

Given this URL: http://www.dreamincode.net/forums/xml.php?showuser=1253 How can I download the resulting XML file and have it loaded to memory so I can grab information from it using Linq? Thanks for the help. ...

Getting wrong information when scraping XML with Linq.

Image I have this XML: <ipb> <profile> <id>335389</id> <name>stapia.gutierrez</name> <rating>0</rating> </profile> </ipb> I'm trying to get ID, Name and Rating. Any guidance? Here's what I have and what I receive: public User FindInformation() { string xml = new WebClient().DownloadString(String.For...

SimpleXML won't return data properly

I'm using SimpleXML to parse a data file from an external source. I'm trying to pull a thumbnail from the result, which looks like this: <entry> <title>Ball_Punch</title> <author> <name>burningcandle2010</name> <uri>https://www.mochimedia.com/community/profile/burningcandle2010&lt;/uri&gt; ...

No response from jQuery ajax call

I've been struggling with this for way too long tonight, and I haven't found anything useful when searching for answers. It's probably very simple. I'm trying to load data using the Spotify Metadata API by doing AJAX calls with jQuery. Running this request in a browser works just fine: http://ws.spotify.com/search/1/track?q=foo B...

JAVA: gathering byte offsets of xml tags using an XmlStreamReader

Hi there, Is there a way to accurately gather the byte offsets of xml tags using the XMLStreamReader? I have a large xml file that I require random access to. Rather than writing the whole thing to a database, I would like to run through it once with an XMLStreamReader to gather the byte offsets of significant tags, and then be able t...

How can I check if an XDocument has at least one child?

I'm trying to check if a user exists from an XML response. When a user doesn't exist the response is like this: <ipb></ipb> What would be the best way for me to (in code) verify that a user doesn't exist? I was thinking of checking if it didn't have any child elements but I'm somewhat confused. Thanks for the help! public v...

How can I select an XML element if there are three of the same elements there?

Given this XML found here. How can I get each contact item individually? For example, say I wanted to get only twitter: I tried this: return doc.XPathSelectElement("/ipb/profile/contactinformation/contact[type/text() = 'LinkedIn']/value").Value; But that returns nothing. Any help? ...

jQuery: Retreving only first attribute of a specific node from XML

Basically, dealing with an XML feed that's not written in the nicest way (Youtube API data), and follows on from a previous question on the topic. Currently, there are four nodes in the file named media:thumbnail. Each media.thumbnail node has various attributes, one of which is url. I am only wanting to retrieve value of the first occu...

How to read existing assembly version from AssemblInfo.cs files, increment and update the new version using Team Build via TFS 2008?

Hi all, I need to implement auto-increment for each nightly builds. For this, i need to read existing version, increment only the build number and save the incremented build number to assemblyinfo.cs files as well as some custom xml files having the following syntax. <?xml version="1.0" encoding="utf-8"?> <MyProduct> <Version>v.3.0...

Matching filenames with id

I have 1 text file which contains numbers from 1 to 11644. Beside the numbers are the names of the xml files that i have in another folder. I have a total of 8466 xml files. I need to match the filename of all the xml files with the id in the text file and extract the value of the id out. All of the id are in random position. An example ...

Create a structure in a flat xml file

Hello all, I have an xml file made like this: <car>Ferrari</car> <color>red</color> <speed>300</speed> <car>Porsche</car> <color>black</color> <speed>310</speed> I need to have it in this form: <car name="Ferrari"> <color>red</color> <speed>300</speed> </car> <car name="Porsche"> <color>black</color> <speed>310</speed...

Javascript 2D array issue - all elements are a copy of the final entry

Hi there, I'm creating a javascript 2D array from an XML file which I then manipulate and filter as necessary before displaying on the page. As I loop through the XML records, I manipulate the data a little, build a normal array from it (rowRecord) and then add this array to the 2D array (dataSet). Thing is, I end up with a nice 2D arr...

Is this impossible with xpath?

Is it possible with xpath to get the result transformed somehow, just like it can be done with SQL? Given the following: <a> <b x="1" y="2" z="3"> <b x="2" y="2" z="3"> </a> For example if I wanted to get all b nodes, but i don't want the z attribute to be part of the the results. Or another thing which Iam thinking about is to ...