public marks

PUBLIC MARKS from solrac with tags programming & xml

2010

Build Android apps using XML and JavaScript Object Notation Part 2

Part 2 examines the manner in which Webkit-hosted JavaScript code exchanges data with Java code in an Android application. Explore techniques for handling two of the most common data formats used on the Internet—XML and JavaScript Object Notation (JSON)—on the Android platform.

Build Android apps using XML and JavaScript Object Notation Part 1

Explore techniques for handling two of the most common data formats used on the Internet—XML and JavaScript Object Notation (JSON)—on the Android platform. This first part covers the basics of XML and JSON and shows you how to build an Android application that parses and displays a Twitter status-update feed provided in both formats.

2009

Speaking the language of the Web - Building Android apps with Java and XML tools

In this article, you will see different options for working with XML tools on Android and how to use them to build your own Android applications. Learn how to leverage XML parsers, SAX, and also how to Work the DOM.

Methods to resolve namespaces with the Java API

Explore namespaces in XPath expressions with the Java language and its XML functions. Learn three ways to provide the prefix to namespace mapping using the NamespaceContext object. This article contains example code to make it easy to code your own NamespaceContext.

Effortless XML manipulation with Groovy slurping

To be a successful software developer in this day and age, you need a set of tools that makes dealing with XML effortless. Groovy introduces new and better ways to create and process XML. With the help of some examples, this article shows you how Groovy makes building and parsing XML refreshingly simple.

Display realtime Twitter Tweet stream with QueryPath

The new QueryPath library, a PHP cousin of the jQuery JavaScript library, offers an efficient API for working with XML, HTML, and HTTP. In this article, Walk through a simple example and build a small script that workes with the Web services API of the popular Twitter microblogging service, to execute a specific search on Twitter's server and print the results as HTML. Such a tool can be added to an existing Web site to show recent Twitter activity on a topic of interest.

IBM launches a new Social Network for Developers

Now with "My developerWorks" you get the benefit of a personalized profile and custom home page as your gateway into how-to articles, tutorials, forums, IBM trial downloads and tools, technical briefings, blogs, spaces, podcasts, sample code, and wikis. You also get the most important new ability to easily network with a technical community of over 8 million skilled UNIX, Java, Linux, Web Development, XML, and Open Source developerWorks users, who are students, software developers, and IT professionals, like you. Now you can build your technical skills and your professional network at the same time and in the same place.

Make better web-based dashboards with XQuery

Many digital dashboards that cropped up in the 1980s were horrible (if not unsubtle) analogs to a car's dashboard. Discover what makes a good dashboard, and learn to identify and leverage key performance indicators (KPIs) for more effective digital dashboards. Finally, build a Web dashboard using the eXist XML database and XQuery.

The bridge between GWT, Java, XML and PHP

Google Web Toolkit (GWT) applications, apart from connecting to servlets in time-honored Java fashion, can also use PHP Web services to send and receive data in XML. You'll explore methods to generate XML documents and process them, both in the Java language and in PHP. This article examines a simple GWT application and a couple of PHP Web services that consume XML documents.

Implementing RPC for JavaScript using Ajax and Java code

This article shows how to implement a Remote Procedure Call (RPC) mechanism for Web applications that use JavaScript on both servers and clients. You'll also learn several interesting techniques, such as implementing Java interfaces with JavaScript, building an XMLHttpRequest wrapper, making Ajax debugging easier, and using JSP tag files to generate JavaScript code.

Linux and UNIX Document publishing using XML

Robust, open standards for XML document markup and a rich set of freely available tools for XML document parsing and format conversion make it easy to install and configure a complete documentation development and formatting environment on any UNIX or Linux system. This article focuses on DocBook, which is the best-known and most widely used schema for documentation markup.

3 huge pains in your XML and SOA to avoid

This article examines three different common anti-patterns, or "worst practices" in XML that can give you a big headache when coding for Web services and SOA. These common errors are often encountered and can really make your life more complicated than it needs to be. These solutions can definitely cut your misery short.

The clear advantages of XQuery over PHP and JSP

Like Structured Query Language (SQL), XQuery is a lookup specification tied to the XML standard. Using XML as the model and XQuery as the view is a powerful way to provide a language-agnostic solution while still retaining the benefits of using the MVC pattern. In this article, explore the advantages of XQuery over other view technologies (PHP, JSP), how XQuery is implemented in the presentation layer, and a realistic example of such an implementation.

Create XML schema from Java then back again with JiBX

Code generation from XML schema definitions is widely used for all types of XML data exchange, including Web services. JiBX data binding has long been known as the fastest and most flexible approach for binding Java code to XML. Learn how to create quality XML schema from Java with JiBX and then how to generate Java code easily from XML schema definitions.

Using E4X on the server-side with Jaxer

Running JavaScript on the server is not some oddity. The ECMAScript for XML (E4X) standard gives JavaScript developers a powerful API to work with XML. In this article, you can see how JavaScript and E4X make it easy to work with XML on the server. Combine this key ingredient with Jaxer to create Ajax applications using nothing but JavaScript.

A much needed Web Services Validation Tool for WSDL and SOAP

With the Web Services Validation Tool for WSDL and SOAP, Web services developers are able to validate Web services messages without deploying actual Web services applications to application servers. This saves a lot of time and effort in deployment and maintenance of test servers. It can be deployed to validate Web services messages and filter invalid or malicious Web services messages. This provides Web services to operate in a more secure and efficient environment.

The five best practices for SOA Web 2.0

In this article, two experienced SOA architects look at the new world of Web 2.0 technologies with a critical eye and present five best practices that can help you be more successful in adopting Ajax, REST, and other Web 2.0 technologies as part of your SOA. There are several major areas in which they have learned some very painful lessons. They share these with you to spare you similar distress, and to help you get a jump on your SOA Web 2.0 success.

An Introduction to XML Schema 1.1

With the constant requests for co-occurrence constraint checking support from the XML Schema 1.0 user community, the XML Schema 1.1 working group introduced the concept of assertions and type alternatives in XML Schema 1.1. This article gives an overview of co-occurrence constraint support in XML Schema 1.1, highlighting the addition of assertions and type alternatives to further restrict the existence and values of elements and attributes.

2008

Firefox 3.0 and its XML and XSLT big boost

With all the hundreds of XML processing tools out there, Web browsers are still where the action is—luckily for XML developers, the action never seems to slow down. Firefox 3 introduces a huge improvement to basic XML parsing as well as a big win for those looking to use XSLT in Firefox. This makes a big difference for practical use of XML on the Web.

Analyze your content and build a specialized DTD

You might wonder "I have some content that might be a candidate for topic specialization. What's next?" This tutorial walks you through the design, implementation, and testing of a DITA topic specialization. After reviewing some sample content and mocking up some DITA versions, you'll create the DITA specialization DTD, revise the samples to conform to it, and then test them by creating XHTML versions of the sample documents with the DITA Open Toolkit to make sure that everything is in place.

The future of XML

How will you use XML in years to come? The wheels of progress turn slowly, but turn they do. The crystal ball might be a little hazy, but the outline of XML's future is becoming clear. The exact time line is a tad uncertain, but where XML is going isn't. XML's future lies with the Web, and more specifically with Web publishing.

Faster RSS and Atom filtering with XQuery

XQuery offers a flexible method to process XML files. Some find this method is easier to follow syntactically. See how XQuery makes it much easier to merge and filter information from XML documents when you embed the filtering instructions right into the document that you use to generate the output format. You can use that functionality to aggregate information from RSS and Atom feeds into the format you need.

Create a Sudoku Rich Client game with Eclipse

XMLBeans is a great XML-to-Java data-binding technology, but it lacks the ability to register observers for model changes. However, you can customize generated plain old Java objects (POJOs) to include the necessary interfaces and the notification of changes. Create a Sudoku Rich Client Platform (RCP) game application in Eclipse, and learn how to use eventing to validate the user's input.

Use Castor to convert from XML to Java

After reading Part 1: Install and set up Castor, and Part 2: Marshall and unmarshall XML, in this series, you should be comfortable using Castor to convert from XML to Java, and then back again. In Part 3, you'll learn to add flexibility to your functionality, through Castor mapping files. You'll no longer be constrained by the names of elements in your XML document, or by the member variable names in your Java classes.

Create dynamic Firefox user interfaces

Learn how to use Ajax to download XML data from a Web server, and discover how you can use XSLT to transform it dynamically into Firefox user-interface elements expressed in XML User Interface Language (XUL). By the end of the tutorial, you'll be able to apply the techniques to any XML-based data source used to drive a Firefox application.