CS-xml

http://216.187.231.34/akc/servlet/DisplayServlet?url=DisplayNoteURL&reportId=428&statementId=381&reportId=428

Create a dummy xml
use xsd.exe to create the .xsd file
use Visual studio to tweak the XSD for a) cardinality and b) data types
A summary document for JAXB

As of 2001

Castor
Zeus
Jato
Quick
somemore

I am not sure what the current status look like

Basic xsd structure
Annonymous types
Composite types
Named types
min/max occurs
References

4) Castor home page

18-Mar-04

http://www.castor.org/xml-mapping.html

I am hoping to get the following from here

1. Castors approach
2. Sample code for serialization/deserialization
3. Future of castor
4. jaxb or castor

1. Notes from Dennis Sosnoski on xml binding and other stuff

2. JiBX is a framework for binding XML data to Java objects. It lets you work with data from XML documents using your own class structures. The JiBX framework handles all the details of converting your data to and from XML based on your instructions. JiBX is designed to perform the translation between internal data structures and XML with very high efficiency, but still allows you a high degree of control over the translation process.

3. XBIS XBIS is an encoding format for XML documents that is fully convertible to and from text, with information set equivalence between the original document text and regenerated document text. It's intended for use in transmitting XML documents between application components, and is therefore designed for processing speed. The current Java language implementation offers several times the performance of SAX2 parsers working from text documents across a wide range of document types and sizes, and across JVMs tested, while also providing a substantial reduction in document size for most types of XML documents.

How can I read an xml file using JAXP

dotnet example

Dotnet code example
Streaming an object as xml
Controlling streaming with xml attributes
Controlling array elements

http://java.sun.com/developer/technicalArticles/WebServices/jaxb/index.html

Being from sun I am hoping to derive the following

. What do they say about the overall architecture?
. Where is it heading?

Table of contents

What's JAXB? 
An Example: Accessing an XML Document 
  Bind the Schema 
  Unmarshal the Document 
Another Example: Building an XML Document 
  Bind the Schema 
  Create the Content Tree 
  Marshal the Content Tree 
A Final Example: Updating an XML Document 
Binding Can Be Customized 
Distinct Advantages 
Run the Examples 
See here for an example xml and xsd file for jaxb.

online print format xml documents?

Sample code to open an xml file

13) State of JAXB

19-Mar-04

There is little doubt that objects provide distinct advantages when working in Java compared to SAX, DOM, or raw XML. But in Java the problem or facility is that there are so many alternatives available for binding Java and XML. In .Net this choice is made for you by Microsoft in terms of a tool called XSD.exe. Of the solutions available in Java, Jaxb seem to have finally turned the corner and is now part of the web services developer pack.

This article examines the current state of jaxb based on literature available on the internet. This article will examine the following to answer the question of "what is the state of Jaxb and will I choose it for my development effort?".


Jaxb Packaging
Jaxb features
Good things about JAXB
Known issues with JAXB as I see
What are others saying about JAXB
Bottomline
Samplecode: A taste of jaxb
	Generate java classes from XSDs
	XML to Java
	Java to XML
References

http://www.onjava.com/lpt/a/4446

1. Written by Sayed
2. Lot of code samples
3. Tuning XSD for better class generation
4. Using elements vs composite types in xsd
5. Inline annotated schema
6. External schema annotation files
7. Binding declaration language

http://216.187.231.34/akc/servlet/DisplayServlet?url=DisplayNoteURL&reportId=225&statementId=178&reportId=225

Aspire in combination with Tomcat presents a very viable and cost-effective option for generating XML directly and declaratively from relational databases. Developers will start by choosing a set of SQL statements or stored procedures. Developers will then arrange these assets into a calling hierarchy in a configuration file. Aspire will execute this hierarchical data definition and returns a java based hierarchical data set. Aspire has pre-defined transformations that can convert this hierarchical data set into varieties of XML formats. Aspire also allows you to transform the resulting XML using XSLT via JAXP. The final XML or HTML can then be sent to the browser or consumed programmatically.

In addition to SQL and Stored-Procedures, you can also use File readers, java classes, and potentially others in their place. These assets are called relational adapters producing relational data sets. New relational adapters can be written quite easily for other enterprise data sources when needed.

The main focus of this article to allow programmers to quickly download Aspire and start generating XML from data bases. This is a cook-book/tutorial like approach that tells you everything you need to get started and be on your way to generate XML with very little coding. This article also encourages see-before-you-paint approach to web page development, meaning you can see your data on the web page as XML or text first before actually writing code for that page. This is very useful for debugging and discovering available fields in the data.

Working with Jaxb in 2017

17) xml: Example of CDATA

8-Feb-05

Example

<report_description>
<![CDATA[ 
some xml text
]]>
</report_description>