The Page Editor uses targeted XML edit primitives with verbatim quote references to apply line-numbered replacements or insertions without rewriting the entire document, resolving anchors in descending line order to prevent numbering shifts.