xml

XSLT stylesheet does not reload

Hey, I got a static page which uses an XSLT stylesheet and pulls in the overall menu from a separate menu.xml. Usually, the menu wont change, neither will the stylesheet. However, at some point they may, because the content is modified. In any case, the auxiliary styling files are not reloaded when you reload the main page. Essentially...

Merge two XML Documents(same core text,diferent tags) to index on Lucene

Hello comunity! ;) I'm building a web search application (rich application) that is intended to search over some historical documents. Those documents have their own structure. I'm using lucene 3.x to build the search engine, etc. So far i have built my own Analyzer and a SimpleToken class to fit my needs. So what is the problem? The ...

Extracting strings from a xml file and pasting them to a text file

Hi, I am trying to extract data from a xml file, get rid of the xml tags, and store the values in a txt file (tab delimited format) using C. I was able to extract and manipulate the string but I am unable to paste the string to the txt file in a tab delimited format. Instead of getting a txt file that should read like: x.xxxxxxx ...

What is the problem with Ajax (jQuery) And Php

What is the problem with Ajax (jQuery) And Php ? Why my code does not work ? jQuery Code: $(document).ready(function(){ $.ajax({ type: "GET", url: "Tags.php", dataType: "xml", success: function(xml) { alert("success"); } }); }); Tags.php Code <?xml version="1.0" encoding="UTF-8"?> <tages> <?php ...

XML vs YAML vs JSON

Assuming I'm starting a project from scratch, which is not dependent on any other project. I would like to use a format to store feeds, something like XML, since XML is not the only available format of its kind, I would like to know: why should I choose one over the rest? I will be using perl. 'Feed' is a description of a product (name...

android webservice to a php server (XML vs JSON and SOAP vs REST)

Hey guys, I am actually looking for some opinion on how to get this done. I have a php server with a mysql backend to authenticate users using android os. I came across the debate of having JSON vs XML to minimize the overhead and using REST vs SOAP. Can I get some tips on what is the best path to go about getting this done ? I know its...

Parse HTML that is stored inside of an XML file

I have an xml file that contains lots of data. Inside one of the tags I have some simple html. <Xml> <post> <author>Billybob</author> <postContent> <![CDATA[ <!--cached-Sat, 16 Oct 2010 17:20:25 +0000--> <br /> <a href= 'http://google.com/ ' cla...

How RSS and ATOM inform client about updates? long polling or polling or something else?

I red that RSS and ATOM are HTTP based using XML. So how RSS or atom reader are informed about content updates if HTTP doesn't support connections? They need to poll to server periodically? I'm interested in using it in real time web application but i heard that "polling doesn't scale". ...

Passing a variable from within XSL:for-each to outside the XSL:for-each

Hello, I'm trying give a variable a value within XSL:for-each and access the variable after the XSL:for-loop has ended (or even after it's moved to the next XSL:for-each). I've tried using both global and local variables but they don't seem to work. Is this possible? If not, is there another way around the problem? -Hammer ...

Where can I find tutorials on Facebook's XHP extension for PHP?

I'm very interested in the Facebooks php extension xhp (http://github.com/facebook/xhp/wiki), but I didn't use it so far. I was wondering if anyone can share personal experience with xhp and point me into direction where I can find tutorials about it (wiki on github is very poor). Thanks everyone. ...

Xml to JSon, Character Problem

hi, in my application I am doing conversion from, xml to Json object with this method; JSONObject result = org.json.XML.toJSONObject(postData); But, I have problems with turkish characters. It is not converting turkish characters from xml to json. How can I do this? Thank you. ...

Is XML parsing in PHP as fast as Python or other alternatives?

So I have 16 GB worth of XML files to process (about 700 files total), and I already have a functional PHP script to do that (With XMLReader) but it's taking forever. I was wondering if parsing in Python would be faster (Python being the only other language I'm proficient in, I'm sure something in C would be faster). ...

Parse XML data on page load & insert into div using AJAX / Javascript

I am working on a page that uses javascript / AJAX to parse xml from a file. I need to be able to parse a url on the loading of a page and insert it into a div. I have the script written but I need help getting 2 things: 1) having it parse an XML file and load that data into a div on page load 2) the option to click a link and load that ...

Looking for a way to parse and insert XML string into MySQL using php

I am looking for a way to parse and insert following XML string data to MySQL tables using php.. please help <?xml version="1.0" encoding="UTF-8"?><brandModelListResponse> <brand ID="Nokia" Description="Nokia"> <model ID="N93i" OS="Symbian" OSVersion="SymS60V3" image="nokia-n93i.gif">N93i</model> <model ID="N95" OS="Symbia...

Updating Child's Attribute of a XElement (or a Cloned XElement)

Hello...I have an XML as follows. <AFConfig> <Geographies> <Geography id="Place1" description="NicePlace"> <MetaData> <Services> <Service> ... ... </Service> </Services> </MetaData> <Systems> <DefaultSystem systemName="SYSONE" server=http"//192.168.0.0" /> </Systems> </Geography> <Geogr...

Where can I find a downloadable prescription and OTC drugs database?

I am working on a project for (US based) online pharmacies and I am having a hard time finding a database of drugs grouped by layman categories. I downloaded FDA data from 'Drugs@FDA' and 'Facts@FDA'. It contains a wide list of approved medications but is not sorted/grouped by layman categories like you would find in online search libr...

Is CDATA supposed to be URL-encoded?

Obviously the answer is no... right? The reason I ask is because I have this string defined in XML for an Android app: <string name="foo"><![CDATA[<html><body><p>This%20is%20a%20test</p></body></html>]]></string> All I do to the string is read it, and display in an HTML view. I would not have expected the %20s to be interpreted, yet t...

Best way to cache XML files

Hi, I have website which connects to 14-17 xml streams and downloads streams with every page load. That was fine for testing purposes and for traffic <100/day. However it now gets to stage when page loads slower and slower because I need to wait for external XML to download. What is the best way to cache/manipulate with these files? ...

How to save to XML using dataset

I am using sql databse to save data of a simple note taking application, using dataset and gui is binded with database. Simple work. Using SQL is useless here, i want to save the data to a simple XML file instead of SQL using the same dataset. I am using Visual Studio 2010 and programming in C# .Net 4.0 ...

Help in parsing XML, simple string - but I can't seem to parse it

I have the following XML: <iq xmlns="jabber:client" to="[email protected]/agsXMPP" xml:lang="en" id="sub23" from="search.google.com" type="result"> <pubsub xmlns="http://jabber.org/protocol/pubsub"&gt; <subscription subscription="subscribed" subid="5077774B57777BD77770" node="search" jid="3985077777...