XmlEditor class

A utility class for editing XML-like content (XML or Plist) while preserving formatting and comments.

Implementers

Constructors

XmlEditor(String _source)
Default constructor.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getInsertionAnchor(XmlInsertElementEdit insert) → (int, String)
Determines the insertion anchor point for the given insert operation. Returns a tuple of (anchor index, indent string).
insert(XmlInsertElementEdit insert) → void
Inserts a new element based on the provided insert definition.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(XmlRemoveElementEdit remove) → bool
Removes an element based on the provided remove definition.
save(File file) → bool
Saves the current XML content to the specified file. Returns true if successful, false otherwise.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited