XML Manipulation with Apache AXIOM Massachusetts

Explore how to process Axiom and how to serialize Axiom into an output stream. Also learn to use the Axiom APIs for processing SOAP.

Local Companies

Clearstate
1 (617)-217- 2845
225 Franklin Street 26th Floor
Boston, MA
MMT Associates
978-851-9077
50 Gilson Road
Littleton, MA
Schooner Group
978 594-5079
17 Moffatt Rd
Salem, MA
West Roxbury Business & Professional Association
(617) 971-0290
60 Carolina Avenue
Jamaica Plain, MA
Integrity Fundraising
(866) 459-2379
3 Forest Avenue
Natick, MA
TalentBurst, Inc
(508) 652-0089
One Apple Hill Drive
Natick, MA
TalentBurst, Inc
508-652-0089
One Apple Hill Drive
Natick, MA
Change Dynamics Consulting
978.475.8424
Six Sugarbush
Andover, MA
Washington Street Business Group
(617) 524-2345
3484 Washington Street
Jamaica Plain, MA
Ital Trade Partners of New England, LLC
(617) 342-7244
225 Northern Avenue, Suite 411
Boston, MA

With the popularity of Apache Axis2, Axiom also got a good attention. One of the cool things is that you don't need to have Axis2 to use Axiom, you can download Axiom separately and use specifically. Axiom is used in a number of Apache project and other project in addition to Apache Axis2. In the first part of the article I discussed Pull and Push parser technology as well as gave an Axiom overview. I also showed how to create Axiom in various ways and how to work with attributes and namespaces. So if you followed the first part, then you have good background knowledge to follow this article. If you have not followed the first part then it is recommended that you read it before continuing.



Tree Navigation


Navigating the object structure can be done in the usual way by using the list of children (similar to any of the XML processing tool). However in Axiom, the child nodes are returned as an iterator. The idea of iterator is to support “Pull parsing” and ”On-Demand” building, so only the element you asked for will be read into the memory. Others will remain untouched. The following code sample shows how the children can be accessed. The children are of the type OMNode and can either be of type OMText or OMElement.

Get all Nodes



Iterator children = root.getChildren();
while(children.hasNext()){
OMNode node = (OMNode)children.next();
}


Get Only Elements


You can use following code to all child OMElement for a given Element, in this case you will not get any OMText element.




Iterator children = root.getChildElements();
while(children.hasNext()){
OMElement node = (OMElement)children.next();
}


Get Element by Name


Read the Rest of this Article at Developer.com

Featured Local Company

TalentBurst, Inc

(508) 652-0089
One Apple Hill Drive
Natick, MA
http://www.talentburst.com

Related Articles
- Apache AXIOM Massachusetts
Apache AXIOM (AXis2 Object Model) is a pull-based, XML Infoset-compliant object model that supports on-demand building of the object tree. Learn the basis of Axiom and how to use it.
- "Just Add Linux": The Union of Commercial and Open Source Software into Existing Business Models Massachusetts
Regional Articles
- XML Manipulation with Apache AXIOM Acton MA
- XML Manipulation with Apache AXIOM Agawam MA
- XML Manipulation with Apache AXIOM Allston MA
- XML Manipulation with Apache AXIOM Amesbury MA
- XML Manipulation with Apache AXIOM Amherst MA
- XML Manipulation with Apache AXIOM Andover MA
- XML Manipulation with Apache AXIOM Arlington MA
- XML Manipulation with Apache AXIOM Attleboro MA
- XML Manipulation with Apache AXIOM Beverly MA
- XML Manipulation with Apache AXIOM Billerica MA
- XML Manipulation with Apache AXIOM Boston MA
- XML Manipulation with Apache AXIOM Braintree MA
- XML Manipulation with Apache AXIOM Bridgewater MA
- XML Manipulation with Apache AXIOM Brighton MA
- XML Manipulation with Apache AXIOM Brockton MA
- XML Manipulation with Apache AXIOM Brookline MA
- XML Manipulation with Apache AXIOM Buzzards Bay MA
- XML Manipulation with Apache AXIOM Cambridge MA
- XML Manipulation with Apache AXIOM Charlestown MA
- XML Manipulation with Apache AXIOM Chelmsford MA
- XML Manipulation with Apache AXIOM Chelsea MA
- XML Manipulation with Apache AXIOM Chicopee MA
- XML Manipulation with Apache AXIOM Danvers MA
- XML Manipulation with Apache AXIOM Dedham MA
- XML Manipulation with Apache AXIOM Dracut MA
- XML Manipulation with Apache AXIOM East Falmouth MA
- XML Manipulation with Apache AXIOM East Weymouth MA
- XML Manipulation with Apache AXIOM Easthampton MA
- XML Manipulation with Apache AXIOM Everett MA
- XML Manipulation with Apache AXIOM Fairhaven MA
- XML Manipulation with Apache AXIOM Fall River MA
- XML Manipulation with Apache AXIOM Fitchburg MA
- XML Manipulation with Apache AXIOM Foxboro MA
- XML Manipulation with Apache AXIOM Framingham MA
- XML Manipulation with Apache AXIOM Franklin MA
- XML Manipulation with Apache AXIOM Gardner MA
- XML Manipulation with Apache AXIOM Gloucester MA
- XML Manipulation with Apache AXIOM Haverhill MA
- XML Manipulation with Apache AXIOM Hingham MA
- XML Manipulation with Apache AXIOM Holyoke MA
- XML Manipulation with Apache AXIOM Hyannis MA
- XML Manipulation with Apache AXIOM Hyde Park MA
- XML Manipulation with Apache AXIOM Jamaica Plain MA
- XML Manipulation with Apache AXIOM Lawrence MA
- XML Manipulation with Apache AXIOM Leominster MA
- XML Manipulation with Apache AXIOM Lexington MA
- XML Manipulation with Apache AXIOM Longmeadow MA
- XML Manipulation with Apache AXIOM Lowell MA
- XML Manipulation with Apache AXIOM Ludlow MA
- XML Manipulation with Apache AXIOM Lynn MA
- XML Manipulation with Apache AXIOM Malden MA
- XML Manipulation with Apache AXIOM Mansfield MA
- XML Manipulation with Apache AXIOM Marblehead MA
- XML Manipulation with Apache AXIOM Marlborough MA
- XML Manipulation with Apache AXIOM Mattapan MA
- XML Manipulation with Apache AXIOM Medford MA
- XML Manipulation with Apache AXIOM Melrose MA
- XML Manipulation with Apache AXIOM Methuen MA
- XML Manipulation with Apache AXIOM Middleboro MA
- XML Manipulation with Apache AXIOM Milford MA
- XML Manipulation with Apache AXIOM Milton MA
- XML Manipulation with Apache AXIOM Natick MA
- XML Manipulation with Apache AXIOM Needham MA
- XML Manipulation with Apache AXIOM New Bedford MA
- XML Manipulation with Apache AXIOM Newburyport MA
- XML Manipulation with Apache AXIOM Newton Center MA
- XML Manipulation with Apache AXIOM North Adams MA
- XML Manipulation with Apache AXIOM North Andover MA
- XML Manipulation with Apache AXIOM North Attleboro MA
- XML Manipulation with Apache AXIOM North Dartmouth MA
- XML Manipulation with Apache AXIOM Northampton MA
- XML Manipulation with Apache AXIOM Norton MA
- XML Manipulation with Apache AXIOM Norwood MA
- XML Manipulation with Apache AXIOM Peabody MA
- XML Manipulation with Apache AXIOM Pittsfield MA
- XML Manipulation with Apache AXIOM Plymouth MA
- XML Manipulation with Apache AXIOM Quincy MA
- XML Manipulation with Apache AXIOM Randolph MA
- XML Manipulation with Apache AXIOM Revere MA
- XML Manipulation with Apache AXIOM Roslindale MA
- XML Manipulation with Apache AXIOM Salem MA
- XML Manipulation with Apache AXIOM Saugus MA
- XML Manipulation with Apache AXIOM Scituate MA
- XML Manipulation with Apache AXIOM Seekonk MA
- XML Manipulation with Apache AXIOM Shrewsbury MA
- XML Manipulation with Apache AXIOM Somerville MA
- XML Manipulation with Apache AXIOM South Hadley MA
- XML Manipulation with Apache AXIOM South Weymouth MA
- XML Manipulation with Apache AXIOM Southbridge MA
- XML Manipulation with Apache AXIOM Springfield MA
- XML Manipulation with Apache AXIOM Stoneham MA
- XML Manipulation with Apache AXIOM Stoughton MA
- XML Manipulation with Apache AXIOM Swampscott MA
- XML Manipulation with Apache AXIOM Taunton MA
- XML Manipulation with Apache AXIOM Tewksbury MA
- XML Manipulation with Apache AXIOM Walpole MA
- XML Manipulation with Apache AXIOM Waltham MA
- XML Manipulation with Apache AXIOM Watertown MA
- XML Manipulation with Apache AXIOM West Roxbury MA
- XML Manipulation with Apache AXIOM West Springfield MA
- XML Manipulation with Apache AXIOM Westborough MA
- XML Manipulation with Apache AXIOM Westfield MA
- XML Manipulation with Apache AXIOM Westford MA
- XML Manipulation with Apache AXIOM Weymouth MA
- XML Manipulation with Apache AXIOM Winthrop MA
- XML Manipulation with Apache AXIOM Woburn MA
- XML Manipulation with Apache AXIOM Worcester MA
Related Articles
- "Just Add Linux": The Union of Commercial and Open Source Software into Existing Business Models Massachusetts
With open source taking off in the marketplace, new business models for vendors providing value-added services mix and match commercial and open technologies to increase market reach.
- Apache AXIOM Massachusetts
Related Local Events
2010 Pinnacle Awards
Dates: 1/22/2010 - 1/22/2010
Location: Westin Copley Place
Boston, MA
View Details

November Networking Breakfast
Dates: 11/17/2009 - 11/17/2009
Location: Holiday Inn Boston - Somerville
Somerville, MA
View Details

Easthampton Cultural Council meeting
Dates: 11/16/2009 - 11/16/2009
Location: Easthampton Cultural Council Old Town Hall
Easthampton, MA
View Details

The Classroom -- Performance Continuum Feedback? Method
Dates: 11/6/2009 - 11/6/2009
Location: Cambridge College
Cambridge, MA
View Details

Executive Forum - Drew Faust
Dates: 10/22/2009 - 10/22/2009
Location: Boston Marriott Copley Place
Boston, MA
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML