xml

HXT -- what is "deep" ?

I'm putting in a lot of time trying to figure out how to use HXT. I keep coming against examples using deep. What does deep do? For example, this code has the following: atTag tag = deep (isElem >>> hasName tag) Another example: -- case-insensitive tag matching atTagCase tag = deep (isElem >>> hasNameWith ((== tag') . upper . localP...

Are there any standards similar to WSDL but designed for Java or C/C++?

Are there any standards similar to WSDL but designed for Java or C/C++? To be clear: I am designing an offline API, not a web service. I am designing a system that allows different components to be plugged in, but for the orchestrator to know how to call it I currently allow the orchestrator to retrieve back a sort of "get features" f...

Convert a String or a InputStreamReader into InputSource

Hello all, I just read some tutorials in order to parse a xml feed from the web and turn them into a Listview: URL file = new URL("http://..../file.xml"); SAXParserFactory fabrique = SAXParserFactory.newInstance(); SAXParser parseur = fabrique.newSAXParser(); XMLReader xr = parseur.getXMLReader(); ReglageParseur gestionnaire = new Re...

android - accessing test application assets

Hi, I've an XML file in the assets directory of my test application. I want to access this file from my suite method of the test class. ie., public static TestSuite suite(){ InputStream stream = // Some code which returns the asset } Any idea how I can do this? I tried with Resources.Resources.getSystem().getAssets() but no luck ...

How to support recursive include when parsing xml

I'm defining an xml schema of my own which supports the additional tag "insert_tag", which when reached should insert the text file at that point in the stream and then continue the parsing: Here is an example: my.xml: <xml> Something <insert_file name="foo.html"/> or another </xml> I'm using xmlreader as follows: class HtmlH...

[AJAX+PHP] How to send data from one user to other without storing data in database

Hi,i got an assignment to make something similar to http://typewith.me .The problem i am facing is that i have to send xml through AJAX from one user to server(im using PHP) and the other user will receive it when he makes request through AJAX. But storing XML in database in the intermediate time will make it slow. So where else can i st...

Now that we have JSON, why do people still use XML for new web services?

Possible Duplicate: What are the pros and cons of XML and JSON? I don't know of a web facing language that doesn't support both JSON and XML. So I'm sure this has nothing to do with serving different formats because of needs. My guess is that people are still making new web services using XML because that's what they know, o...

Where can I browse common schemas?

It is hackish and myopic to write a new XML schema for a common data situation without considering existing standard schemas. It would be silly, for instance, to write a schema for recording internet bookmarks without considering XBEL. Yet while a quick search yeilds hundreds of examples of how to write your own DTD, RNC, XSD, etc, I h...

What can I use to asp.net store tooltip messages?

I have around 60 controls and I want to show a tooltip for each of them. I could do this manually but I want something that would allow me to make changes to the tooltip messages or the control they are bound to without modyfing the code (I don't know what this would be called). I thought about XML, but is there a better to store simpl...

Parse XML Tag Element in Javascript

Hi there, I have an xml feed, which i'm attempting to extract two values from. I'll paste the basic xml feed below. <aws:weather> <aws:current-condition icon="http://deskwx.weatherbug.com/images/Forecast/icons/cond034.gif"&gt;Mostly Cloudy</aws:current-condition> </aws:weather> To parse this feed, I have the following in Javascr...

jQuery function calling self?

I have the following function defined: function _getUserMatches(url, mDist, ui) { var dataString = 'dist=' + mDist; var optionsHTML = 'Current Option: ' + mDist + '<br />'; optionsHTML += 'Other Options:'; optionsHTML += ' 2 <input type="radio" name="dist" id="dist" value="2" /> |'; optionsHTML += ' 5 <input type=...

Problem in XML parsing

Hello i am having problem in xml parsing, here I am not able to get the value of the particular tag. My code is as follows: - (void)viewDidLoad { [super viewDidLoad]; NSString *feedURLString = @"http://www.google.com/ig/api?weather=new+york,ny"; NSURL *URL=[[NSURL alloc] initWithString:feedURLString]; NSString *data=[[NS...

C#/LINQ: How to Query this XML Structure

I am trying to get the value of <getthis> but can't seem to get just the string value. I think this is quite simple but I can't seem to get it. I am trying to do it with LINQ XML <?xml version="1.0" encoding="utf-8"?> <root> <item> <name></name> <title></title> </item> <info> <getthis>value here</get...

parse XML and convert to a Collection

<inputs> <MAT_NO>123</MAT_NO> <MAT_NO>323</MAT_NO> <MAT_NO>4223</MAT_NO> <FOO_BAR>122</FOO_BAR> <FOO_BAR>125</FOO_BAR> </inputs> I've to parse the above the XML. After parsing, i want the values to be in a Map<String, List<String>> with Key values corresponding to the child nodes - MAT_NO, FOO_BAR and values - the values of t...

Apple pList form of XML can I parse it through Android Java?

Can we parse the iPhone/iPad based pList XML from Java on Android? Please tell me if any such library you have used or know about? ...

Transform nested xml items with xslt

Hi, How can I transform nested XML elements with xslt, keeping the structure? Let's say I have an XML document like this: <?xml version="1.0" encoding="UTF-8"?> <root> <node> </node> <node> <node> <node> </node> </node> </node> </root> And I would like to get something like this: <?xml version="1.0" enco...

Best Java XML parser for producing/consuming REST services

Currently using Java's built-in XML DOM libraries for creation/parsing. Ugly, even with lots of helper classes and methods, and performance and memory usage sucks. What's the best Java tool or framework for dealing with XML in regards to producing and consuming REST services? A service I use uses JAXB. I was able to use their classes...

Convert a string to an xml file in android

Hi, Can anybody tell me how to convert a string to an xml file in android? Thanks ...

how to insert parsed xml data in to sql lite database in android

Hi, I have parsed xml data but I don't know how to insert it into a SQL Lite database and I don't know where I have to place the xml database file in Eclipse IDE folders. Kindly provide some example program with deployment descriptor. Thanks in advance ...

Need to send an XML request to a URL - where to start!

Hi guys, I need to send an XML request to a URL. Fairlu unsure where to start with this as it's not something I've attempted before. I'm doing this using PHP, and at the moment I'm calling the data from a mysql database where the last payment date is 90 days or over, showing it in a html table. Underneath this table I'd ideally like...