Show the structure of an html/xml document without displaying any of
the values. This is useful if you want to get a high level view of the
way a document is organised. Compared to xml_structure
,
html_structure
prints the id and class attributes.
xml_structure(x, indent = 2, file = "") html_structure(x, indent = 2, file = "")
x | HTML/XML document (or part there of) |
---|---|
indent | Number of spaces to ident |
file | A connection, or a character string naming the file
to print to. If |
#> <a> #> <b> #> <c> #> <c> #> <d>#> <html [lang]> #> <head> #> <meta [charset]> #> <meta [http-equiv, content]> #> <meta [name, content]> #> <title> #> {text} #> <link [rel, type, href, sizes]> #> <link [rel, type, href, sizes]> #> {comment} #> <link [href, rel]> #> <link [href, rel]> #> {comment} #> {comment} #> {comment} #> <body> #> {text} #> <div [class]> #> {text} #> <div [class]> #> {text} #> <div [class, role]> #> {text} #> <div [class]> #> {text} #> <div [class]> #> {text} #> <p> #> <a [href]> #> <img [src, alt]> #> {text} #> <p> #> <small> #> <a [href]> #> {text} #> {text} #> <h2> #> {text} #> {text} #> <p> #> <a [href]> #> {text} #> {text} #> <h2> #> {text} #> {text} #> <ul> #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> {text} #> <div [class]> #> {text} #> <h2> #> {text} #> {text} #> <ul> #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> {text} #> <div [class]> #> {text} #> <h2> #> {text} #> {text} #> <ul> #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> {text} #> <div [class]> #> {text} #> <h2> #> {text} #> {text} #> <ul> #> <li> #> <a [href]> #> {text} #> {text} #> <li> #> <a [href]> #> {text} #> {text} #> {text} #> {text} #> {text} #> <div [class]> #> {text} #> <h1> #> {text} #> {text} #> <h2 [id]> #> {text} #> {text} #> <p> #> {text} #> <strong> #> <a [href]> #> {text} #> {text} #> <a [href]> #> {text} #> {text} #> {text} #> <p> #> {text} #> <a [href]> #> {text} #> {text} #> {text} #> <h2 [id]> #> {text} #> {text} #> <ul> #> <li> #> <p> #> <a [href]> #> <strong> #> {text} #> {text} #> {text} #> <li> #> <p> #> <strong> #> {text} #> {text} #> {text} #> <li> #> <p> #> <a [href]> #> <strong> #> {text} #> {text} #> {text} #> <li> #> <p> #> <strong> #> {text} #> {text} #> {text} #> <li> #> <p> #> <strong> #> <a [href]> #> {text} #> {text} #> {text} #> <li> #> <p> #> <strong> #> <a [href]> #> {text} #> {text} #> {text} #> {comment} #> {text} #> {text} #> <div [class]> #> {text} #> {text} #> {text} #> {comment} #> {text} #> <script [src]> #> {comment} #> <script [src]>#> [[1]] #> <p> #> <a [href]> #> <img [src, alt]> #> #> [[2]] #> <p> #> <small> #> <a [href]> #> {text} #> #> [[3]] #> <p> #> <a [href]> #> {text} #> #> [[4]] #> <p> #> {text} #> <strong> #> <a [href]> #> {text} #> {text} #> <a [href]> #> {text} #> {text} #> #> [[5]] #> <p> #> {text} #> <a [href]> #> {text} #> {text} #> #> [[6]] #> <p> #> <a [href]> #> <strong> #> {text} #> {text} #> #> [[7]] #> <p> #> <strong> #> {text} #> {text} #> #> [[8]] #> <p> #> <a [href]> #> <strong> #> {text} #> {text} #> #> [[9]] #> <p> #> <strong> #> {text} #> {text} #> #> [[10]] #> <p> #> <strong> #> <a [href]> #> {text} #> {text} #> #> [[11]] #> <p> #> <strong> #> <a [href]> #> {text} #> {text} #>#> <html> #> <body> #> <p#a> #> <p.c.d>