hwp_xml_edit_table_cell
Find and replace text in a specific cell of a table within an HWPX document, preserving character formatting and processing XML directly without HWP program.
Instructions
HWPX 파일의 특정 표 셀(row, col)에서 텍스트를 직접 찾아 바꿉니다. (v0.7.0 신규) 한글 프로그램 없이 XML 경로(tc → subList → p → run → t)로 처리. linesegarray 셀 내부만 자동 삭제. charPrIDRef(서식 ID)는 보존. .hwp는 미지원 (hwp_fill_table_cells 사용).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | Yes | 0-based 열 인덱스 | |
| row | Yes | 0-based 행 인덱스 | |
| find | Yes | 찾을 텍스트 | |
| replace | Yes | 바꿀 텍스트 | |
| file_path | Yes | 수정할 HWPX 파일 경로 (.hwpx만 지원) | |
| occurrence | No | 치환 횟수 (0=전체, 1+=N번째). 기본 0 | |
| output_path | No | 저장 경로 (생략 시 원본 덮어쓰기) | |
| table_index | Yes | 0-based 평탄화 표 인덱스 (중첩 표는 v0.7.2.1) |