The web service looked at yesterday returns a Shakespeare speech in XML format based on the search string that is sent via Groovy from a Swing form created in Matisse. Groovy isn't only useful in interacting with the web service—parsing the returned XML is also a trivial activity with Groovy
There is an interesting war being fought in the blogosphere over the use (or overuse) of ESB (enterprise service buses) to build out a SOA (service oriented architecture). But everyone is talking in abstractions, and no one's really giving anyone a good idea of when to use an ESB or when to avoid them. No one seems to be looking at why people are or aren't using ESBs and getting to the root of the question - when are they appropriate for use in a SOA and when are they simply being implemented for the sake of being implemented?
There is no way to use E4X as powerful as it is to sort an XML by a particular attribute. It's a shame, but here is a simple function that leverages the sorting power of Arrays.
The Python core libraries include six different methods for parsing and creating XML, none of which feel particularly Pythonic (here I am, three weeks into developing with Python and already I’m calling out core libraries as not being Python-y enough). I missed the low overhead methods I had used in other languages. Particularly for parsing XML, PHP’s simplexml is hard to beat, and for building, it’s hands-down Ruby’s XML Builder. Off I went, hunting for Python ports.
The first alpha of JBoss Cache 3.0.0 - codenamed Naga, (after the Naga Jolokia pepper) - is out. It has a new Multi-Version Concurrency Control (MVCC) locking scheme that is completely lock-free for readers, which makes it very efficient for a read-mostly system like a cache. The entire configuration has also been refactored to be more readable, concise and consistent.
If you don't know how to get country and city's name from IP address there here is the function for you in PHP. This function uses api of hostip.info to get the country name, country code and city name from the IP address in PHP.
It’s surprising how universal XML has become. It doesn’t seem to matter what the problem, XML is the solution. For example, consider a simple client/server architecture where the communication protocol must transmit some sort of structured data. Nine developers out of ten will form the basis of the protocol around XML. If it’s a lot of data to be transferred, then they will compress the XML using Java’s stream compression libraries. If there’s binary data to be transmitted, it will either be stored as CDATA within the XML or as files within the same compressed archive. Very few developers will actually stop and consider alternative solutions.
I wrote a recent article the other day on how Google has decided NOT to use XML for a recent project they open sourced. I received a LOT of very opinionated responses to that post. Unfortunately every one was from a complete MORON.
I was once a believer in XML. Until I started working with it, that is. Now my enthusiasm has faded away - replaced by - well - bitterness or something like that.
Sponsors
More tags
Programming Security Software unix-linux ajax how-to javascript php java tools .net trends frameworks research gui web design ruby open source reviews web 2.0 eclipse other languages python humor announcement News mobile Microsoft Windows usability database standards rss c-and-cpp Firefox web services xhtml web wiki code search images webdesign blogs history voip reference microformats feeds development flash atom graphics web2.0 howto photoshop resources tutorial html data webdev linuxworld templates book icons api zimbra zcs comparison opinion test icon feedicon podcasts json editor w3c feed parser css-html methodology apache syndication bestofdesign simplexml timesheet rss feeds web tech relaxng schema feedthru uniform feed icon blogs and podcasts podcasting software journalism news podcasts podcasting stuff ssi meta tags json-p
XML and Java have the same sort of flavor to them: they’re reasonably good and very widely used; they’re the sort of product that design committees everywhere aspire to create. Their flaws only really become visible after something better comes along. In Java’s case, Python demonstrated that a whole lot of the structure and required text that gives Java code its rigidity can be stripped away, leaving a language that’s a joy to develop in. However, there hasn’t been an analogous improvement on XML.
Quick review of SOAP to really understand what it is and how it works. General outline with code snippets.
Discover the flexibility of XPath when working with XML from Java programming. XPath makes selecting elements, attributes, and text in an XML document easy. Learn how to evaluate XPaths from Java programming, and work with the returned nodes.
Google (or at least some part of it) has now weighed in on the whole XML discussion with the recent release of their "Protocol Buffers" implementation, and, quite naturally, the debates have begun, with all the carefully-weighed logic, respectful discourse, and reasoned analysis that we've come to expect and enjoy from this industry. Yeah, right.
In an effort to solve the bulk and time-consumption problem when encoding large databases, Google developed its own alternative to XML. Yesterday, the company began evangelizing others to use it as an alternative to the industry standard.
This article introduces the Google Calendar Data API, demonstrates how you can use it to browse user-generated calendars; add and update calendar events; and perform keyword searches. Also, it illustrates how to integrate data from the Google Calendar service into a PHP application using both SimpleXML and the Zend client library.
In this tutorial, we'll explore some of the uses for RSS feeds, why your website should have them, and you'll also learn how to make static feeds with XML and dynamic feeds using PHP.
Google is leaving XML for its newest creation: ProtocolBuffers. Is XML to blame for bloated files and poor application performance? And what's Google losing by ditching the lingua-franca of the web?
As a software development trend, SOA has the potential to permeate internal software architectures. But will it?
The proliferation of XML for data interchange and configuration file format have resulted in numerous open-source Java XML Parser libraries (left image). Indeed, Java includes its own full-fledged XML library obviating the need to download additional XML library. However, the in-built and majority of open-source Java XML Parsers tend to suffer from few considerable issues like complexity and bloated size, and this tend to be normal rather than exceptional.
Using the power of SimpleXML to implement quick fixes and hacks site wide using output buffering.
Originally I asked the following question in my last posting: I have an XML document and I want to use that document to populate a corresponding set of Java objects. This is a commonly encountered scenario when working with Java, so what is the easiest method for Java XML Binding that requires the least amount of code? So what about XStream?
A recent item posted here by Bryan Rasmussen entitled 'why XSL-T support in the browser is a failure' brought-up an interesting point about arbitrary XML on the web and how that works with search engines
I have been playing with groovy recently, specifically with the MarkupBuilder, the groovy native support for markup languages. It basically means writing XML using native groovy syntax. Pretty neat.
2-minute hands-on approach to XML-RPC: see real code, get real skills.
Java SE 6, added the new class XMLEvent in the package javax. xml. stream.events. This is the base event interface for handling markup events. Not only that, Events may be cached and referenced after the parse has completed.
Get a high-level introduction to the YAML file format for Java developers. Find out how it differs from XML and JSON and examine its relative advantages and drawbacks.
I have an XML document and I want to use that document to populate a corresponding set of Java objects. This is a commonly encountered scenario when working with Java, so what is the easiest method for Java XML Binding that requires the least amount of code?
In this article, look at some top XML schemas that provide solutions for all sorts of problems, from the basics of Web services to data description. You'll also cover database-like solutions that involve contacts and invoices. The schemas in this article were chosen for their usefulness and utility, plus their impact on the XML community in how information is shared and exchanged using the XML format.
Have you ever faced a situation when you need to manipulate Excel spreadsheets with PHP on the server that is running Linux? With Open XML and PHPExcel you can do that now :)!
12345678910111213 »









