Linux SoftwareText Editing&ProcessingMarkupQuery-Oriented Model for XML 0.1 Alpha1

Query-Oriented Model for XML 0.1 Alpha1



Developer:   Iwan Memruk
      more software by author →
Price:  0.00
License:   LGPL (GNU Lesser General Public License)
File size:   0K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


Query-Oriented Model for XML is a lightweight XML processing framework for Java that promotes the use of XPath instead of Java code for consuming XML.

The resulting code from Query-Oriented Model for XML, is simple and expressive with no meaningless objects and no meaningless parameters - just pure business code.

Here's a sample of usage (from a testcase -- here's the used XML document):

public class BigTest extends TestCase {
public static final String[] CONTEXT = {"c urn:catalog", "n urn:name"};

@QUseContext("CONTEXT") // Use the namespace context specified by the CONTEXT field.
public void test() {

InputStream xml = QomTestResources.getTestXml("catalog.xml"); // Get the source.

QLocation root = new QBuilder().build(xml); // Build the root location.

// Test a deep query.
Assert.assertEquals("Harold", root.value("//c:maintainer/n:name[n:first_name = 'Elliotte']/n:last_name"));


QLocation[] composers = root.locateAll("c:composer"); // Test a multi-query.

Assert.assertEquals(4, composers.length);

String[] names = {"Julie", "Margaret", "Beth", "Linda"};

for (int i = 0; i < composers.length; ++i) {

Assert.assertEquals(names[i], composers[i].value("n:name/n:first_name")); // Test relative queries.

}
}
}
tags assert assertequals  first name  composers length  query assert  for xml  oriented model  model for  query oriented  

Download Query-Oriented Model for XML 0.1 Alpha1


 http://prdownloads.sourceforge.net/qom/qom-0.1alpha1.jar?use_mirror=keihanna
 http://prdownloads.sourceforge.net/qom/qom-0.1alpha1.jar?use_mirror=umn
 http://prdownloads.sourceforge.net/qom/qom-0.1alpha1.jar?use_mirror=surfnet
 http://prdownloads.sourceforge.net/qom/qom-0.1alpha1.zip?use_mirror=kent


Authors software

Query-Oriented Model for XML 0.1 Alpha1 (by Iwan Memruk)


Similar software

Query-Oriented Model for XML 0.1 Alpha1 (by Iwan Memruk)

Template::Tutorial 2.15 (by Andy Wardley)
Template::Tutorial are template toolkit tutorials.

This section includes tutorials on using the Template Toolkit

MathML::Entities 0.13 (by Jacques Distler)
MathML::Entities is a Perl module that can convert XHTML+MathML Named Entities to Numeric Character References.

SYNOPSIS

use M

SipUnit 0.0.6b (by Becky Mc)
SipUnit provides a test environment geared toward unit testing SIP applications

SQL Query Builder 1.2 (by David Regla Demaree)
SQL Query Builder is a PHP 5 class that generates simple SQL queries (select, insert, update, and delete) that can be sent to an SQL

JsTester 1.3 (by Andres Almiray)
JsTester allows validation of JavaScript code inside Java.

JsTester provides a group of assert methods like JUnit's Assert, a

Cobra 0.96 (by Jose)
Cobra HTML Toolkit is an open source library that provides a pure Java HTML parser and a renderer

JpdfUnit 0.93 (by JpdfUnit Team)
JpdfUnit is a framework for testing a generated pdf document with the JUnit test framework so JPdfUnit is a high level api

Rails Page Cache Test Plugin 0.2 (by canatella)
Rails Page Cache Test Plugin adds two assertions to the Test::Units::TestCase class of Ruby on Rails to check the caching and expirin

Simple C++ ODBC Database API 1.10 (by Eminence Technology Pty Ltd.)
Simple C++ ODBC Database API is designed to encapsulate the ODBC API functionality in an object oriented manner.

The API was creat


Other software in this category

Bluefish 1.0.7 (by Olivier Sessink)
Bluefish is a programmer's Web development editor written using GTK, designed to save the experienced webmaster some keystrokes.

DocBook 4.5CR1 (by DocBook Open Repository development team)

SMILGen 0.9.9 (by Peter Fawcett)
SMILGen is a SMIL (and XML) authoring tool designed to ease the process of XML content creation

AFT 5.096 (by Maroc)
AFT is a document preparation system

XMLStarlet 1.0.1 (by mgrouch)
XMLStarlet is a set of command line utilities (tools) which can be used to transform, query, validate, and edit XML documents and fil

    search


Featured Software

jEdit 4.3 pre8
jEdit is an Open Source text editor written in Java

Opera 9.02
Surf the Internet in a safer, faster, and easier way with Opera browser

GNU Aspell 0.60.4
GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


Subscribe in Rojo
Google Reader
Add to My Yahoo!

Add to My AOL
Subscribe with Bloglines
Subscribe in NewsGator Online
Add 'nixbit linux software' to Newsburst from CNET News.com
del.icio.us nixbit linux software


Top tags