Skip to content

Commit 5b8a260

Browse files
committed
Adds to_xml to Document
1 parent bb78837 commit 5b8a260

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/docx/document.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ def bookmarks
7070
bkmrks_hsh
7171
end
7272

73+
def to_xml
74+
Nokogiri::XML(@document_xml)
75+
end
76+
7377
def tables
7478
@doc.xpath('//w:document//w:body//w:tbl').map { |t_node| parse_table_from t_node }
7579
end

0 commit comments

Comments
 (0)