xml schema
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1986
DTD to XML Schema translator 1.60
DTD to XML Schema translator allows you to translate a Document Type Definition (DTD) into an XML Schema. more>>
DTD to XML Schema translator allows you to translate a Document Type Definition (DTD) into an XML Schema.
DTD to XML Schema translator lets you translate a Document Type Definition into an XML Schema (REC-xmlschema-1-20010502).
The translator can map meaningful DTD entities onto XML Schema constructs (simpleType, attributeGroup, group); the XML document model is not anonymized.
In addition, the translator can map DTD comments onto XML Schema documentation nodes in various ways.
Free available as Java class, Standalone application and as Web tool.
<<lessDTD to XML Schema translator lets you translate a Document Type Definition into an XML Schema (REC-xmlschema-1-20010502).
The translator can map meaningful DTD entities onto XML Schema constructs (simpleType, attributeGroup, group); the XML document model is not anonymized.
In addition, the translator can map DTD comments onto XML Schema documentation nodes in various ways.
Free available as Java class, Standalone application and as Web tool.
Download (0.53MB)
Added: 2007-02-26 License: GPL (GNU General Public License) Price:
976 downloads
XML Schema Standard Type Library 1.0.0
XML Schema Standard Type Library (XSSTL) is a collection of universally-useful data types defined in the W3C XML Schema language more>>
XML Schema Standard Type Library, in short XSSTL, is a collection of universally-useful data types defined in the W3C XML Schema language. The provided types describe concepts such as email address, IP address, phone number, country code, US states, etc.
To make all the types from XSSTL available in your schema simply add the following import directive:
< import namespace="http://www.codesynthesis.com/xmlns/xsstl"
schemaLocation="xsstl.xsd"/ >
And the following namespace-to-prefix mapping to your schema root:
xmlns:stl="http://www.codesynthesis.com/xmlns/xsstl"
Alternatively, you can import individual types:
< import namespace="http://www.codesynthesis.com/xmlns/xsstl"
schemaLocation="xsstl/email-address.xsd"/ >
< import namespace="http://www.codesynthesis.com/xmlns/xsstl"
schemaLocation="xsstl/phone-number.xsd"/ >
Enhancements:
- This initial version includes the following data types: EmailAddress, IPv4Address, Port, IPv4Endpoint, IPv4EndpointStruct, ISO3166CountyCode, Percentage, PhoneNumber, PhoneCountryCode, PhoneAreaCode, PhoneSubscriberNumber, PhoneExtensionNumber, PhoneNumberStruct, RFC822DateTime, USStateTerritoryCode, USStateCode, USTerritoryCode, USContinentalStateCode, and USContiguousStateCode.
<<lessTo make all the types from XSSTL available in your schema simply add the following import directive:
< import namespace="http://www.codesynthesis.com/xmlns/xsstl"
schemaLocation="xsstl.xsd"/ >
And the following namespace-to-prefix mapping to your schema root:
xmlns:stl="http://www.codesynthesis.com/xmlns/xsstl"
Alternatively, you can import individual types:
< import namespace="http://www.codesynthesis.com/xmlns/xsstl"
schemaLocation="xsstl/email-address.xsd"/ >
< import namespace="http://www.codesynthesis.com/xmlns/xsstl"
schemaLocation="xsstl/phone-number.xsd"/ >
Enhancements:
- This initial version includes the following data types: EmailAddress, IPv4Address, Port, IPv4Endpoint, IPv4EndpointStruct, ISO3166CountyCode, Percentage, PhoneNumber, PhoneCountryCode, PhoneAreaCode, PhoneSubscriberNumber, PhoneExtensionNumber, PhoneNumberStruct, RFC822DateTime, USStateTerritoryCode, USStateCode, USTerritoryCode, USContinentalStateCode, and USContiguousStateCode.
Download (0.011MB)
Added: 2006-09-28 License: BSD License Price:
1121 downloads
XML Benchmark 1.3.0
XML Benchmark is a C/C++/Java XML parsers benchmarking tool set. more>>
Objective of this project to provide benchmarking toolset for all available multiplatform C/C++ (and some Java) XML parsers.
Main features:
Currently following parsers are supported:
- LibXML2 + GDome + LibXSLT + XML Security
- Apache Xerces for C + Apache Xalan for C + Apacge XML Security for C
- IBM XML4C + IBM Lotus XSL
- Expat + CenterPoint XML + Sablotron + Arabica
- RXP Parser
- Oracle XDK for C/C++
- Oracle XDK for Java
- QT XML Module
- Sun Crismon + Java WebServices Developer Pack 1.2 + Apache XML Security
Following separate benchmarks provided:
- Non-Validating Parsing with Native,SAX,DOM Engines Benchmark
- Creating + Serializing DOM treee Benchmark
- Schema Validation Benchmark
- XSL Transformation Benchmark
- XML Security (Signature, Encryption) Benchmark
Following XML sources supported:
- Any valid XML file (with optional XSL, XSD companions)
- Auto-generated random simple XML file (variable size)
- Auto-generated random XML OPC-DA message sequence (variable size and length
Enhancements:
- Support Apache XML Security for C++, Version: CVS 08.02.2004
- Experemental support for XML Encryption Benchmark for Apache XML Security for C++ from CVS tree.
- Tested againist latest libraries
<<lessMain features:
Currently following parsers are supported:
- LibXML2 + GDome + LibXSLT + XML Security
- Apache Xerces for C + Apache Xalan for C + Apacge XML Security for C
- IBM XML4C + IBM Lotus XSL
- Expat + CenterPoint XML + Sablotron + Arabica
- RXP Parser
- Oracle XDK for C/C++
- Oracle XDK for Java
- QT XML Module
- Sun Crismon + Java WebServices Developer Pack 1.2 + Apache XML Security
Following separate benchmarks provided:
- Non-Validating Parsing with Native,SAX,DOM Engines Benchmark
- Creating + Serializing DOM treee Benchmark
- Schema Validation Benchmark
- XSL Transformation Benchmark
- XML Security (Signature, Encryption) Benchmark
Following XML sources supported:
- Any valid XML file (with optional XSL, XSD companions)
- Auto-generated random simple XML file (variable size)
- Auto-generated random XML OPC-DA message sequence (variable size and length
Enhancements:
- Support Apache XML Security for C++, Version: CVS 08.02.2004
- Experemental support for XML Encryption Benchmark for Apache XML Security for C++ from CVS tree.
- Tested againist latest libraries
Download (0.88MB)
Added: 2005-04-12 License: GPL (GNU General Public License) Price:
1656 downloads
SQL::Schema 0.31
SQL::Schema is a Perl module to convert a data dictionary into SQL statements. more>>
SQL::Schema is a Perl module to convert a data dictionary into SQL statements.
SYNOPSIS
use DBI;
my $dbh = DBI->connect(...);
use SQL::Schema;
my $schema = SQL::Schema->new($dbh);
my $sql = $schema->string;
print $sql;
print "$schema";
WARNING
This is alpha software. It currently works with Oracle databases only. The name of the module might be changed in future releases as well as its interface.
If somebody is modifying the datase schema during the life time of an SQL::Schema object, the object will probably fail and / or produce wrong information.
SQL::Schema is a class for objects representing a database schema. The methods of an instanciated object do allow to access the information within a databases data dictionary and to represent them as SQL create statements and the like using the proper SQL dialect.
Constructor
$schema = SQL::Schema->new($dbh);
The new method instanciates a schema object. The only argument required is a database handle, which has to offer the same API as described within DBI(3).
Methods
$sql = $schema->string;
Returns an SQL string containing several statements at once. This string contains all the SQL statements to create the database schema.
This method is overloaded with the string operator. So the following two lines are equivalent:
$sql = $schema->string;
$sql = "$schema";
<<lessSYNOPSIS
use DBI;
my $dbh = DBI->connect(...);
use SQL::Schema;
my $schema = SQL::Schema->new($dbh);
my $sql = $schema->string;
print $sql;
print "$schema";
WARNING
This is alpha software. It currently works with Oracle databases only. The name of the module might be changed in future releases as well as its interface.
If somebody is modifying the datase schema during the life time of an SQL::Schema object, the object will probably fail and / or produce wrong information.
SQL::Schema is a class for objects representing a database schema. The methods of an instanciated object do allow to access the information within a databases data dictionary and to represent them as SQL create statements and the like using the proper SQL dialect.
Constructor
$schema = SQL::Schema->new($dbh);
The new method instanciates a schema object. The only argument required is a database handle, which has to offer the same API as described within DBI(3).
Methods
$sql = $schema->string;
Returns an SQL string containing several statements at once. This string contains all the SQL statements to create the database schema.
This method is overloaded with the string operator. So the following two lines are equivalent:
$sql = $schema->string;
$sql = "$schema";
Download (0.033MB)
Added: 2007-04-05 License: Perl Artistic License Price:
933 downloads
XML::Compile::Schema 0.05
XML::Compile::Schema is a Perl module to compile a schema. more>>
XML::Compile::Schema is a Perl module to compile a schema.
INHERITANCE
XML::Compile::Schema
is a XML::Compile
SYNOPSIS
# preparation
my $parser = XML::LibXML->new;
my $tree = $parser->parse...(...);
my $schema = XML::Compile::Schema->new($tree);
my $schema = XML::Compile::Schema->new($xml_string);
my $read = $schema->compile(READER => mytype);
my $hash = $read->($xml);
my $doc = XML::LibXML::Document->new(1.0, UTF-8);
my $write = $schema->compile(WRITER => mytype);
my $xml = $write->($doc, $hash);
print $xml->toString;
This module collects knowledge about a schema. The most important method is compile() which can create XML file readers and writers based on the schema information and some selected type.
WARNING: The compiler is implemented in XML::Compile::Schema::Translate, which is NOT FINISHED. See that manual page about the specific behavior and its (current) limitations! Please help to find missing pieces and mistakes.
WARNING: the provided schema is not validated! In some cases, compile-time and run-time errors will be reported, but typically only in cases that the parser has no idea what to do with such a mistake. On the other hand, the processed data is validated: the output should follow the specs closely.
Two implementations use the translator, and more can be added later. Both get created with the compile() method.
XML Reader
The XML reader produces a hash from a XML::LibXML::Node tree, or an XML string. The values are checked and will be ignored if the value is not according to the specs.
XML Writer
The writer produces schema compliant XML, based on a hash. To get the data encoding correct, you are required to pass a document in which the XML nodes may get a place later.
<<lessINHERITANCE
XML::Compile::Schema
is a XML::Compile
SYNOPSIS
# preparation
my $parser = XML::LibXML->new;
my $tree = $parser->parse...(...);
my $schema = XML::Compile::Schema->new($tree);
my $schema = XML::Compile::Schema->new($xml_string);
my $read = $schema->compile(READER => mytype);
my $hash = $read->($xml);
my $doc = XML::LibXML::Document->new(1.0, UTF-8);
my $write = $schema->compile(WRITER => mytype);
my $xml = $write->($doc, $hash);
print $xml->toString;
This module collects knowledge about a schema. The most important method is compile() which can create XML file readers and writers based on the schema information and some selected type.
WARNING: The compiler is implemented in XML::Compile::Schema::Translate, which is NOT FINISHED. See that manual page about the specific behavior and its (current) limitations! Please help to find missing pieces and mistakes.
WARNING: the provided schema is not validated! In some cases, compile-time and run-time errors will be reported, but typically only in cases that the parser has no idea what to do with such a mistake. On the other hand, the processed data is validated: the output should follow the specs closely.
Two implementations use the translator, and more can be added later. Both get created with the compile() method.
XML Reader
The XML reader produces a hash from a XML::LibXML::Node tree, or an XML string. The values are checked and will be ignored if the value is not according to the specs.
XML Writer
The writer produces schema compliant XML, based on a hash. To get the data encoding correct, you are required to pass a document in which the XML nodes may get a place later.
Download (0.049MB)
Added: 2006-09-13 License: Perl Artistic License Price:
1136 downloads
XML::Validator::Schema 1.08
XML::Validator::Schema is a Perl module to validate XML against a subset of W3C XML Schema. more>>
XML::Validator::Schema is a Perl module to validate XML against a subset of W3C XML Schema.
SYNOPSIS
use XML::SAX::ParserFactory;
use XML::Validator::Schema;
#
# create a new validator object, using foo.xsd
#
$validator = XML::Validator::Schema->new(file => foo.xsd);
#
# create a SAX parser and assign the validator as a Handler
#
$parser = XML::SAX::ParserFactory->parser(Handler => $validator);
#
# validate foo.xml against foo.xsd
#
eval { $parser->parse_uri(foo.xml) };
die "File failed validation: $@" if $@;
This module allows you to validate XML documents against a W3C XML Schema. This module does not implement the full W3C XML Schema recommendation (http://www.w3.org/XML/Schema), but a useful subset. See the SCHEMA SUPPORT section below.
IMPORTANT NOTE: To get line and column numbers in the error messages generated by this module you must install XML::Filter::ExceptionLocator and use XML::SAX::ExpatXS as your SAX parser. This module is much more useful if you can tell where your errors are, so using these modules is highly recommeded!
<<lessSYNOPSIS
use XML::SAX::ParserFactory;
use XML::Validator::Schema;
#
# create a new validator object, using foo.xsd
#
$validator = XML::Validator::Schema->new(file => foo.xsd);
#
# create a SAX parser and assign the validator as a Handler
#
$parser = XML::SAX::ParserFactory->parser(Handler => $validator);
#
# validate foo.xml against foo.xsd
#
eval { $parser->parse_uri(foo.xml) };
die "File failed validation: $@" if $@;
This module allows you to validate XML documents against a W3C XML Schema. This module does not implement the full W3C XML Schema recommendation (http://www.w3.org/XML/Schema), but a useful subset. See the SCHEMA SUPPORT section below.
IMPORTANT NOTE: To get line and column numbers in the error messages generated by this module you must install XML::Filter::ExceptionLocator and use XML::SAX::ExpatXS as your SAX parser. This module is much more useful if you can tell where your errors are, so using these modules is highly recommeded!
Download (0.052MB)
Added: 2006-09-15 License: Perl Artistic License Price:
1142 downloads
XML::Schema::Type::Simple 0.07
XML::Schema::Type::Simple is a base class for simple XML Schema datatypes. more>>
XML::Schema::Type::Simple is a base class for simple XML Schema datatypes.
SYNOPSIS
package XML::Schema::Type::whatever;
use base qw( XML::Schema::Type::Simple );
use vars qw( @FACETS );
@FACETS = (
minLength => 10,
maxLength => 30,
otherFacet => {
value => $n,
fixed => 1,
annotation => "a comment",
},
);
package main;
my $type = XML::Schema::Type::whatever->new()
|| die XML::Schema::Type::whatever->error();
my $item = $type->instance(some instance value)
|| die $type->error();
# NOTE: some issues still to resolve on the precise
# nature and structure of instances (currently hash ref).
print $item->{ value };
The XML::Schema::Type::Simple module is a base class for objects that represent XML Schema simple types.
<<lessSYNOPSIS
package XML::Schema::Type::whatever;
use base qw( XML::Schema::Type::Simple );
use vars qw( @FACETS );
@FACETS = (
minLength => 10,
maxLength => 30,
otherFacet => {
value => $n,
fixed => 1,
annotation => "a comment",
},
);
package main;
my $type = XML::Schema::Type::whatever->new()
|| die XML::Schema::Type::whatever->error();
my $item = $type->instance(some instance value)
|| die $type->error();
# NOTE: some issues still to resolve on the precise
# nature and structure of instances (currently hash ref).
print $item->{ value };
The XML::Schema::Type::Simple module is a base class for objects that represent XML Schema simple types.
Download (0.14MB)
Added: 2006-09-06 License: Perl Artistic License Price:
1143 downloads
Schema-compare 0.2
Schema-compare is a script that will compares two database schema and show the differences side-by-side. more>>
Schema-compare is a script that will compares two database schema and show the differences side-by-side.
Schema-compare can also generate SQL statements that will alter the old database to match the schema of the new database.
The comparisons are correct, but the SQL statements at the bottom are not quite right, they are close to what is necessary, but probably not exactly right.
To install simply ungzip/untar the file wherever you want to put it in your web folder and then edit the include/config.inc.php file with the information needed to connect to the two databases you want to compare. Both databases need to be on the same database server and use the same username and password to connect to them.
Enhancements:
- This is the first release of schema-compare. It compares the database schema just fine, but the sql alter statements it creates could use some work.
<<lessSchema-compare can also generate SQL statements that will alter the old database to match the schema of the new database.
The comparisons are correct, but the SQL statements at the bottom are not quite right, they are close to what is necessary, but probably not exactly right.
To install simply ungzip/untar the file wherever you want to put it in your web folder and then edit the include/config.inc.php file with the information needed to connect to the two databases you want to compare. Both databases need to be on the same database server and use the same username and password to connect to them.
Enhancements:
- This is the first release of schema-compare. It compares the database schema just fine, but the sql alter statements it creates could use some work.
Download (0.41MB)
Added: 2006-03-07 License: BSD License Price:
1329 downloads
Schema Crawler 3.7
Schema Crawler is a platform (OS and database) independent command-line tool to output your database schema. more>>
Schema Crawler project is a platform (database and OS) independent command-line tool to output your database schema and data in a readable form.
The output is designed to be diff-ed with previous versions of your database schema. Schema Crawler is also an API that improves on standard JDBC metadata.
Build
Ant Build
The ant build is a quick build that builds the Schema Crawler jar without compiling and running unit tests. Download ant, and run it from the Schema Crawler directory. The jar file will be created in the _distrib directory. The main targets are all.build and all.clean.
Maven Build
The maven build is a more comprehensive build that runs unit tests, and also creates the project web-site. Download maven, and run it from the Schema Crawler directory. The jar file will be created in the _distrib directory. The main goals are all.build and all.clean.
Eclipse
Schema Crawler consists of two Eclipse projects, dbconnector and schemacrawler. Since schemacrawler depends on dbconnector, you will need to import both projects into Eclipse.
Enhancements:
- Database properties are now retrieved, along with column data types, both system data types, and UDTs.
- A new command, maximum_schema, gives all possible details of the schema, including database system properties.
- Bugs with the merge rows option and with appending output for multiple runs of SchemaCrawler are fixed.
- An SQL exception with the Oracle Database 10g Express Edition driver on outputting views is fixed.
<<lessThe output is designed to be diff-ed with previous versions of your database schema. Schema Crawler is also an API that improves on standard JDBC metadata.
Build
Ant Build
The ant build is a quick build that builds the Schema Crawler jar without compiling and running unit tests. Download ant, and run it from the Schema Crawler directory. The jar file will be created in the _distrib directory. The main targets are all.build and all.clean.
Maven Build
The maven build is a more comprehensive build that runs unit tests, and also creates the project web-site. Download maven, and run it from the Schema Crawler directory. The jar file will be created in the _distrib directory. The main goals are all.build and all.clean.
Eclipse
Schema Crawler consists of two Eclipse projects, dbconnector and schemacrawler. Since schemacrawler depends on dbconnector, you will need to import both projects into Eclipse.
Enhancements:
- Database properties are now retrieved, along with column data types, both system data types, and UDTs.
- A new command, maximum_schema, gives all possible details of the schema, including database system properties.
- Bugs with the merge rows option and with appending output for multiple runs of SchemaCrawler are fixed.
- An SQL exception with the Oracle Database 10g Express Edition driver on outputting views is fixed.
Download (0.73MB)
Added: 2006-06-12 License: GPL (GNU General Public License) Price:
1231 downloads
XML Hammer 1.0 RC1
XML Hammer application is a free and open-source tool that simplifies elementary XML actions. more>>
XML Hammer application is a free and open-source tool that simplifies elementary XML actions like checking for well-formedness, validation, transformation and xpath searches using any JAXP implementation.
After all these years of XML, it is still relatively difficult to simply validate or transform XML files. You are currently either forced to use extensive, sometimes expensive, and most often difficult to use tools with a lot of extra functionality unnecessary for these simple tasks and very often not flexible enough to provide what you want, or you will have to be almost a programmer and create your own application or script to handle these elementary XML related tasks.
The XML Hammer tool addresses these issues by providing a free and open-source tool that has a (relatively) simple to use user-interface however still allowing the flexibility for the user to specify anything that he/she would have been able to specify when writing a script for this same task him/herself.
The functionality of the XML Hammer tool is based on the capabilities provided by the Java API for XML Processing (JAXP) and supports the JAXP API as fully as possible. To achieve this, the functionality has been divided into four specific project types:
Transformer - Perform XSLT transformations.
XPath - Perform XPath searches on XML files.
XML Parser - Parse and validate XML files.
Schema Validator - Parse and validate Schema files.
Enhancements:
- This version features some major new functionality, including comprehensive help documentation, deactivate and activate properties, easier to use validation functionality, and more.
- Bugs with selecting items in combo-boxes using keys, issues when performing XPath searches, module initialization error handling, and other smaller bugs were fixed.
<<lessAfter all these years of XML, it is still relatively difficult to simply validate or transform XML files. You are currently either forced to use extensive, sometimes expensive, and most often difficult to use tools with a lot of extra functionality unnecessary for these simple tasks and very often not flexible enough to provide what you want, or you will have to be almost a programmer and create your own application or script to handle these elementary XML related tasks.
The XML Hammer tool addresses these issues by providing a free and open-source tool that has a (relatively) simple to use user-interface however still allowing the flexibility for the user to specify anything that he/she would have been able to specify when writing a script for this same task him/herself.
The functionality of the XML Hammer tool is based on the capabilities provided by the Java API for XML Processing (JAXP) and supports the JAXP API as fully as possible. To achieve this, the functionality has been divided into four specific project types:
Transformer - Perform XSLT transformations.
XPath - Perform XPath searches on XML files.
XML Parser - Parse and validate XML files.
Schema Validator - Parse and validate Schema files.
Enhancements:
- This version features some major new functionality, including comprehensive help documentation, deactivate and activate properties, easier to use validation functionality, and more.
- Bugs with selecting items in combo-boxes using keys, issues when performing XPath searches, module initialization error handling, and other smaller bugs were fixed.
Download (4.2MB)
Added: 2007-06-26 License: GPL (GNU General Public License) Price:
852 downloads
XMLBeans 2.2.0
XMLBeans project is a technology for accessing XML by binding it to Java types. more>>
XMLBeans project is a technology for accessing XML by binding it to Java types. XMLBeans provides several ways to get at the XML, including:
- Through XML schema that has been compiled to generate Java types that represent schema types. In this way, you can access instances of the schema through JavaBeans-style accessors after the fashion of "getFoo" and "setFoo".
- The XMLBeans API also allows you to reflect into the XML schema itself through an XML Schema Object model.
- A cursor model through which you can traverse the full XML infoset.
- Support for XML DOM.
Start off with your own stuff:
If you want to get right to it with your own XML schema and instance, follow these basic steps:
Install XMLBeans.
Compile your schema. Use scomp to compile the schema, generating and jarring Java types. For example, to create a employeeschema.jar from an employeesschema.xsd file:
scomp -out employeeschema.jar employeeschema.xsd
Write code. With the generated JAR on your classpath, write code to bind an XML instance to the Java types representing your schema. Heres an example that would use types generated from an employees schema:
File xmlFile = new File("c:employees.xml");
// Bind the instance to the generated XMLBeans types.
EmployeesDocument empDoc =
EmployeesDocument.Factory.parse(xmlFile);
// Get and print pieces of the XML instance.
Employees emps = empDoc.getEmployees();
Employee[] empArray = emps.getEmployeeArray();
for (int i = 0; i < empArray.length; i++)
{
System.out.println(empArray[i]);
}
Enhancements:
- Updated to the latest XMLSchema.xsd - January 25, 2006
- Updated XmlBeans to work with SaxonB-8.6.1 in place of SaxonB8.1
- XQuery external variable binding support
<<less- Through XML schema that has been compiled to generate Java types that represent schema types. In this way, you can access instances of the schema through JavaBeans-style accessors after the fashion of "getFoo" and "setFoo".
- The XMLBeans API also allows you to reflect into the XML schema itself through an XML Schema Object model.
- A cursor model through which you can traverse the full XML infoset.
- Support for XML DOM.
Start off with your own stuff:
If you want to get right to it with your own XML schema and instance, follow these basic steps:
Install XMLBeans.
Compile your schema. Use scomp to compile the schema, generating and jarring Java types. For example, to create a employeeschema.jar from an employeesschema.xsd file:
scomp -out employeeschema.jar employeeschema.xsd
Write code. With the generated JAR on your classpath, write code to bind an XML instance to the Java types representing your schema. Heres an example that would use types generated from an employees schema:
File xmlFile = new File("c:employees.xml");
// Bind the instance to the generated XMLBeans types.
EmployeesDocument empDoc =
EmployeesDocument.Factory.parse(xmlFile);
// Get and print pieces of the XML instance.
Employees emps = empDoc.getEmployees();
Employee[] empArray = emps.getEmployeeArray();
for (int i = 0; i < empArray.length; i++)
{
System.out.println(empArray[i]);
}
Enhancements:
- Updated to the latest XMLSchema.xsd - January 25, 2006
- Updated XmlBeans to work with SaxonB-8.6.1 in place of SaxonB8.1
- XQuery external variable binding support
Download (MB)
Added: 2007-05-07 License: The Apache License 2.0 Price:
907 downloads
XML::Compile::Schema::Translate 0.06
XML::Compile::Schema::Translate is a Perl module to create an XML data parser. more>>
XML::Compile::Schema::Translate is a Perl module to create an XML data parser.
INHERITANCE
XML::Compile::Schema::Translate
is an Exporter
SYNOPSIS
# for internal use only!
This module converts a schema type definition into a code reference which can be used to interpret a schema. The sole public function in this package is compile_tree(), and is called by XML::Compile::Schema::compile(), which does a lot of set-ups. Please do not try to use this package directly!
The code in this package interprets schemas; it understands, for instance, how complexType definitions work. Then, when the schema syntax is decoded, it will knot the pieces together into one CODE reference which can be used in the main user program.
<<lessINHERITANCE
XML::Compile::Schema::Translate
is an Exporter
SYNOPSIS
# for internal use only!
This module converts a schema type definition into a code reference which can be used to interpret a schema. The sole public function in this package is compile_tree(), and is called by XML::Compile::Schema::compile(), which does a lot of set-ups. Please do not try to use this package directly!
The code in this package interprets schemas; it understands, for instance, how complexType definitions work. Then, when the schema syntax is decoded, it will knot the pieces together into one CODE reference which can be used in the main user program.
Download (0.051MB)
Added: 2006-09-19 License: Perl Artistic License Price:
652 downloads
XML::Compile::Schema::XmlReader 0.18
XML::Compile::Schema::XmlReader Perl module contains bricks to translate XML to HASH. more>>
XML::Compile::Schema::XmlReader Perl module contains bricks to translate XML to HASH.
SYNOPSIS
my $schema = XML::Compile::Schema- >new(...);
my $code = $schema- >compile(READER = > ...);
The translator understands schemas, but does not encode that into actions. This module implements those actions to translate from XML into a (nested) Perl HASH structure.
DETAILS
Processing Wildcards
If you want to collect information from the XML structure, which is permitted by any and anyAttribute specifications in the schema, you have to implement that yourself. The problem is XML::Compile has less knowledge than you about the possible data.
anyAttribute
By default, the anyAttribute specification is ignored. When TAKE_ALL is given, all attributes which are fulfilling the name-space requirement added to the returned data-structure. As key, the absolute element name will be used, with as value the related unparsed XML element.
In the current implementation, if an explicit attribute is also covered by the name-spaces permitted by the anyAttribute definition, then it will also appear in that list (and hence the handler will be called as well).
Use XML::Compile::Schema::compile(anyAttribute) to write your own handler, to influence the behavior. The handler will be called for each attribute, and you must return list of pairs of derived information. When the returned is empty, the attribute data is lost. The value may be a complex structure.
Example: anyAttribute in XmlReader
Say your schema looks like this:
< schema targetNamespace="http://mine"
xmlns:me="http://mine" ... >
< element name="el" >
< complexType >
< attribute name="a" type="xs:int" / >
< anyAttribute namespace="##targetNamespace"
processContents="lax" >
< / complexType >
< / element >
< simpleType name="non-empty" >
< restriction base="xs:NCName" / >
< / simpleType >
< / schema >
Then, in an application, you write:
my $r = $schema- >compile(READER = > {http://mine}el
, anyAttribute = > ALL
);
my $h = $r- >( < < __XML );
< el xmlns:me="http://mine" >
< a >42< /a >
< b type="me:non-empty" >
everything
< / b >
< / el >
__XML
use Data::Dumper Dumper;
print Dumper $h;
__XML__
The output is something like
$VAR1 =
{ a = > 42
, {http://mine}a = > ... # XML::LibXML::Node with < a >42< /a >
, {http://mine}b = > ... # XML::LibXML::Node with < b >everything< /b >
};
You can improve the reader with a callback. When you know that the extra attribute is always of type non-empty, then you can do
my $read = $schema- >compile
( READER = > {http://mine}el
, anyAttribute = > &filter
);
my $anyAttRead = $schema- >compile
( READER = > {http://mine}non-empty
);
sub filter($$$$)
{ my ($fqn, $xml, $path, $translator) = @_;
return () if $fqn ne {http://mine}b;
(b = > $anyAttRead- >($xml));
}
my $h = $r- >( see above );
print Dumper $h;
Which will result in
$VAR1 =
{ a = > 42
, b = > everything
};
The filter will be called twice, but return nothing in the first case. You can implement any kind of complex processing in the filter.
<<lessSYNOPSIS
my $schema = XML::Compile::Schema- >new(...);
my $code = $schema- >compile(READER = > ...);
The translator understands schemas, but does not encode that into actions. This module implements those actions to translate from XML into a (nested) Perl HASH structure.
DETAILS
Processing Wildcards
If you want to collect information from the XML structure, which is permitted by any and anyAttribute specifications in the schema, you have to implement that yourself. The problem is XML::Compile has less knowledge than you about the possible data.
anyAttribute
By default, the anyAttribute specification is ignored. When TAKE_ALL is given, all attributes which are fulfilling the name-space requirement added to the returned data-structure. As key, the absolute element name will be used, with as value the related unparsed XML element.
In the current implementation, if an explicit attribute is also covered by the name-spaces permitted by the anyAttribute definition, then it will also appear in that list (and hence the handler will be called as well).
Use XML::Compile::Schema::compile(anyAttribute) to write your own handler, to influence the behavior. The handler will be called for each attribute, and you must return list of pairs of derived information. When the returned is empty, the attribute data is lost. The value may be a complex structure.
Example: anyAttribute in XmlReader
Say your schema looks like this:
< schema targetNamespace="http://mine"
xmlns:me="http://mine" ... >
< element name="el" >
< complexType >
< attribute name="a" type="xs:int" / >
< anyAttribute namespace="##targetNamespace"
processContents="lax" >
< / complexType >
< / element >
< simpleType name="non-empty" >
< restriction base="xs:NCName" / >
< / simpleType >
< / schema >
Then, in an application, you write:
my $r = $schema- >compile(READER = > {http://mine}el
, anyAttribute = > ALL
);
my $h = $r- >( < < __XML );
< el xmlns:me="http://mine" >
< a >42< /a >
< b type="me:non-empty" >
everything
< / b >
< / el >
__XML
use Data::Dumper Dumper;
print Dumper $h;
__XML__
The output is something like
$VAR1 =
{ a = > 42
, {http://mine}a = > ... # XML::LibXML::Node with < a >42< /a >
, {http://mine}b = > ... # XML::LibXML::Node with < b >everything< /b >
};
You can improve the reader with a callback. When you know that the extra attribute is always of type non-empty, then you can do
my $read = $schema- >compile
( READER = > {http://mine}el
, anyAttribute = > &filter
);
my $anyAttRead = $schema- >compile
( READER = > {http://mine}non-empty
);
sub filter($$$$)
{ my ($fqn, $xml, $path, $translator) = @_;
return () if $fqn ne {http://mine}b;
(b = > $anyAttRead- >($xml));
}
my $h = $r- >( see above );
print Dumper $h;
Which will result in
$VAR1 =
{ a = > 42
, b = > everything
};
The filter will be called twice, but return nothing in the first case. You can implement any kind of complex processing in the filter.
Download (0.12MB)
Added: 2007-07-16 License: Perl Artistic License Price:
832 downloads
Xmlbeansxx 0.7.2
Xmlbeansxx is a set of tools for binding XML to C++ objects. more>>
Xmlbeansxx is a set of tools for binding XML to C++ objects. It contains a code generator, which tranforms XML Schema to C++ classes.
It is open, memory safe, fast, and well-tested.
Main features:
- Easy access to XmlSchema based XML data through generated C++ classes.
- Easy iteration over any XML data, even with no schema file, through XmlCursor iterators (being implemented).
- Runtime XPath queries, through XQuery technology (being implemented).
- Memory safe - uses boost::smart_ptr technology.
- Clear, configurable logging - uses log4cxx.
- Fast & lightweighted
<<lessIt is open, memory safe, fast, and well-tested.
Main features:
- Easy access to XmlSchema based XML data through generated C++ classes.
- Easy iteration over any XML data, even with no schema file, through XmlCursor iterators (being implemented).
- Runtime XPath queries, through XQuery technology (being implemented).
- Memory safe - uses boost::smart_ptr technology.
- Clear, configurable logging - uses log4cxx.
- Fast & lightweighted
Download (0.49MB)
Added: 2005-10-05 License: The Apache License 2.0 Price:
1479 downloads
XML Copy Editor 1.1.0.1
XML Copy Editor is an XML editor with DTD/XML Schema/RELAX NG validation. more>>
XML Copy Editor is an XML editor with DTD/XML Schema/RELAX NG validation, XSLT, XPath, pretty-printing, syntax highlighting, folding, tag completion/locking and lossless import/export of Microsoft Word documents.
Enhancements:
- This release fixes a number of bugs and introduces support for CSS.
<<lessEnhancements:
- This release fixes a number of bugs and introduces support for CSS.
Download (3.9MB)
Added: 2007-08-17 License: GPL (GNU General Public License) Price:
866 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above xml schema search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed