XML

Load XML contents to HTML websites dynamically

<p>Writing contents directly into HTML websites is less maintainable and extensible. Hence, contents are stored in XML files and loaded dynamically to structured HTML websites.</p><p>Please find out a detailed way to achieve the mentioned goal.</p>

Taggings:

How to convert XML to JSON by using JavaScript or Java?

<p>&nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">Over the last years the simple data format JSON had a great inpetus in the service-oriented architecture and especially in the area of internet services. It is widely used because of its compactness and easy understandability.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;">&nbsp;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">JSON is lightweight and was used for several of my projects. However, the convertion by hand (Or by an own routine) is an unacceptable quality problem.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;">&nbsp;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">A transformation could look like the this example:</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;">&nbsp;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">The&nbsp;<strong>XML </strong>of image xml.png&nbsp;<span style="font-family: 'Trebuchet MS', sans-serif; font-size: 13px;">should be transformed to the&nbsp;<strong>JSON</strong> representation of image json.png.</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Trebuchet MS'; min-height: 15.0px;">So to a simple representation using curly braces.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 21.0px; font: 13.0px 'Trebuchet MS';"><span style="font-family: Helvetica, sans-serif; font-size: small;"><span style="font-size: 12px;"><span style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"><span style="font-size: 13px;"><br /></span></span></span></span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 21.0px; font: 12.0px Helvetica;">JavaScript could be used to convert the data before it is passed on to the Java application. The conversion could also be done in Java itself.</p><p>&nbsp;</p>

Work with RDF

RDF (Resource Description Framework) is a set of specifications, designed to provide metadata for your data model (general method of modelling information). RDF-Files are stored in a XML like syntax and are used to additional describe the data contained. There also exist an SQL-Query like query language which allows you to extract data from these files. However it would be nice to store these files into a database and easily update or read the data.

Turtle - Terse RDF Triple language

Turtle is a textual syntax for RDF which is highly supported. Instead of using XML you could write expressions like
example:myClass a RDF:Class; RDF:subClass example:myParentClass".

This is a very natural way of writing RDF triples. The language specification could be found at http://www.dajobe.org/2004/01/turtle/ .

There exists a turtle parser for the most common web development programming laguages, which could be found at http://librdf.org/raptor/.

Taggings:

Using RDF(S) without XML.

RDF can be written in some ways: A RDF triple could be represented through a RDF graph, through FOL expressions like P(X,Y), or - most common used for web development - through XML. There are some good RDF/XML parsers for the most common web development languages like Perl or Python. But is there another way of writing RDF, which is supported by a parser for programming/script languages?

Creating a new Seam Web Project using Eclipse

<p>First of all, I would like to give you a short information about JBoss Seam. JBoss Seam is a powerful new application framework for building next generation Web 2.0 applications by unifying and integrating technologies such as Asynchronous JavaScript and XML (AJAX), Java Server Faces (JSF), Enterprise Java Beans (EJB3), Java Portlets and Business Process Management (BPM). Seam has been designed from the ground up to eliminate complexity at the architecture and the API level. It enables developers to assemble complex web applications with simple annotated Plain Old Java Objects (POJOs), componentized UI widgets and very little XML. The simplicity of Seam will enable easy integration with the JBoss Enterprise Service Bus (ESB) and Java Business Integration (JBI) in the future.</p>

How to setup a Canoo Webtest Environment

I am working as part time softwaretester in a software development company. In the last months the main part of my work was testing the same testcases over and over again. All startet with a few testcases for a relatively small frontend. But as time goes by, the software developed and the functionality grew...and so grew the frontend of the application and the complexety of the testcases. At the beginning i only had about 30 testcases which covered the overall functionality of the application. Now i have to test about 100 testcases in the same time. So some solution had to be found. The great thing of the application i have to test is, that most of the navigation and layout stays the same, even when new functionality is implemented. That makes an automatic regression very easy. My goal was now to find a free, easy to understand, easy to install and easy to use test tool which fits my requirements. I chose "Canoo Webtests". It's an XML based test tool, which is really great. It produces very good testreports, it generates screenshots during the automated testing and it is relatively easy to install. Because its XML based the testcases are very easy to implement, and persons who are not so familiar with programming can understand and implement the testcases very easy.

The better way than XML to return complex data from server to Rich Internet Applications client (ajax) or Flash

It's sure that XML is the good way for transferring data. However, in some applications, such as Flash, it is take a long time to write complex data ( in server ) as well as to read ( in client ) in XML form.

Pages

Subscribe to XML