File: doctype.fqtest

package info (click to toggle)
fq 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 106,624 kB
  • sloc: xml: 2,835; makefile: 250; sh: 241; exp: 57; ansic: 21
file content (54 lines) | stat: -rw-r--r-- 578 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
$ fq -d html . doctype.xml
{
  "html": {
    "body": "",
    "head": {
      "title": "aaa"
    }
  }
}
$ fq -o array=true -d html . doctype.xml
[
  "html",
  null,
  [
    [
      "head",
      null,
      [
        [
          "title",
          {
            "#text": "aaa"
          },
          []
        ]
      ]
    ],
    [
      "body",
      null,
      []
    ]
  ]
]
$ fq . doctype.xml
{
  "head": {
    "title": "aaa"
  }
}
$ fq -o array=true . doctype.xml
[
  "head",
  null,
  [
    [
      "title",
      {
        "#text": "aaa"
      },
      []
    ]
  ]
]