Web / Apache Axiom Interview questions
What is OMElement in Apache Axiom?
OMElement is Axiom's representation of a single XML element - the equivalent of DOM's Element, but living inside Axiom's lazily-built tree rather than a fully eager one.
It carries the element's qualified name and OMNamespace, its attributes as OMAttribute objects, and its children as a sequence of OMNode instances (which may themselves be further elements, text, comments, and so on).
Common navigation methods include getFirstElement(), getChildrenWithName(QName), getNextOMSibling(), and addChild()/detach() for mutation; because the tree can be only partially built, several of these calls transparently trigger the underlying builder to pull more content when the requested node hasn't been materialized yet.
An OMElement can come from parsing (via a builder) or be constructed directly through OMFactory when an application wants to build XML programmatically rather than parse it from a source.
More Related questions...