API Reference
This section provides comprehensive API documentation for DomTrip, covering all the main classes and interfaces you'll use when working with XML documents.
Core API Components
Editor API
The Editor API provides a fluent interface for creating and modifying XML documents with formatting preservation.
- Document creation and editing
- Element manipulation
- Attribute management
- Text content handling
- Comment and processing instruction support
Element API
The Element API provides comprehensive methods for XML element manipulation with formatting preservation.
- Element creation and modification
- Attribute management with quote style preservation
- Text content with whitespace preservation
- Inner whitespace control for formatting
- Namespace-aware operations
Document API
The Document API manages XML documents and document-level properties.
- Document creation and parsing
- XML declaration management
- DOCTYPE support
- Root element management
Configuration
Configuration options for customizing DomTrip's behavior.
- Parsing configuration
- Serialization options
- Whitespace handling
- Line ending preferences
- Quote style settings
Quick Navigation
- Complete Javadoc - Full API documentation with detailed method descriptions
- Getting Started - Basic usage examples
- Examples - Practical code examples
Key Classes
The most important classes you'll work with:
Editor
- Main entry point for document editingDocument
- Represents an XML documentElement
- XML elements with attributes and childrenDomTripConfig
- Configuration settingsParser
- XML parsing functionalitySerializer
- XML serialization with formatting preservation
For detailed information about each class and method, see the complete Javadoc documentation.