DomTrip Documentation
Welcome to the complete documentation for DomTrip, the lossless XML editing library for Java that preserves every detail of your XML documents during round-trip operations.
๐ Getting Started
Perfect for developers new to DomTrip:
- Installation - Add DomTrip to your project in minutes
- Quick Start - Your first DomTrip program with examples
- Basic Concepts - Understanding DomTrip's unique approach
โญ Core Features
Discover what makes DomTrip special:
- Lossless Parsing - Perfect round-trip preservation of all formatting
- Formatting Preservation - Maintaining original whitespace and style
- Stream Support - InputStream/OutputStream processing with encoding detection
- Namespace Support - Comprehensive XML namespace handling
๐๏ธ Advanced Topics
For power users and complex scenarios:
- Factory Methods - Object creation patterns and document factories
- Builder Patterns - Fluent APIs for creating complex XML structures
- Library Comparison - How DomTrip compares to DOM4J, JDOM, and others
- Migration Guide - Step-by-step migration from other XML libraries
๐ API Reference
Complete API documentation:
- Editor API - Main entry point for XML editing operations
- Configuration - Customizing DomTrip behavior and presets
๐ Examples & Use Cases
Real-world examples and patterns:
- Examples - Common XML editing scenarios with code samples
๐ฏ Quick Navigation
By Use Case
- Configuration File Editing โ Quick Start + Examples
- Maven POM Manipulation โ Examples + Factory Methods
- SOAP Message Processing โ Namespace Support
- XML Transformation Tools โ Lossless Parsing
By Experience Level
- New to DomTrip โ Installation โ Quick Start
- Migrating from other libraries โ Library Comparison โ Migration Guide
- Advanced usage โ Factory Methods โ Configuration
๐ก Key Benefits
- ๐ Perfect Round-Trip: Unmodified sections remain completely unchanged
- ๐ Format Preservation: Only modified sections are reformatted
- ๐๏ธ Modern API: Fluent builders, Stream navigation, Optional returns
- ๐ Namespace Aware: Comprehensive namespace handling and resolution
- โ๏ธ Configurable: Multiple serialization options and presets
- ๐งช Well Tested: 100% test coverage with 59 passing tests
๐ Getting Help
- ๐ Report Issues - Found a bug or have a feature request?
- ๐ฌ Discussions - Ask questions and share ideas
- ๐ง Contact - Direct support for enterprise users