Learn R Programming

beautier (version 2.6.12)

are_equal_xml_lines: Determine if XML lines result in equal trees

Description

Determine if XML lines result in equal trees

Usage

are_equal_xml_lines(lines_1, lines_2, section)

Value

TRUE if the two sections of the XML files are equal, FALSE otherwise

Arguments

lines_1

lines of a first XML file

lines_2

lines of a second XML file

section

name of an XML section. Assumes that there is one line that starts with <section (excluding whitespace) and one line that is </section> (also excluding whitespace)

Author

Richèl J.C. Bilderbeek

Examples

Run this code
check_empty_beautier_folder()

are_equal_xml_lines(
  lines_1 = readLines(get_beautier_path("2_4.xml")),
  lines_2 = readLines(get_beautier_path("2_6_0.xml")),
  section = "taxonset"
)

check_empty_beautier_folder()

Run the code above in your browser using DataLab