├── .editorconfig ├── .github └── workflows │ ├── bb.yml │ └── main.yml ├── .gitignore ├── .npmrc ├── .prettierignore ├── index.js ├── lib └── index.js ├── license ├── package.json ├── readme.md ├── test ├── fixtures │ ├── attribute │ │ ├── index.json │ │ └── index.xml │ ├── base │ │ ├── index.json │ │ └── index.xml │ ├── cdata │ │ ├── index.json │ │ └── index.xml │ ├── comments │ │ ├── index.json │ │ └── index.xml │ ├── doctype-apostrophe │ │ ├── index.json │ │ └── index.xml │ ├── doctype-name-only │ │ ├── index.json │ │ └── index.xml │ ├── doctype-name-trailing-whitespace │ │ ├── index.json │ │ └── index.xml │ ├── doctype-system-apostrophe │ │ ├── index.json │ │ └── index.xml │ ├── doctype-system │ │ ├── index.json │ │ └── index.xml │ ├── doctype-whitespace │ │ ├── index.json │ │ └── index.xml │ ├── doctype │ │ ├── index.json │ │ └── index.xml │ ├── element │ │ ├── index.json │ │ └── index.xml │ ├── html-in-svg-in-html │ │ ├── index.json │ │ └── index.xml │ ├── instruction │ │ ├── index.json │ │ └── index.xml │ ├── script │ │ ├── index.json │ │ └── index.xml │ ├── text │ │ ├── index.json │ │ └── index.xml │ ├── xml-declaration-encoding │ │ ├── index.json │ │ └── index.xml │ ├── xml-declaration-standalone │ │ ├── index.json │ │ └── index.xml │ └── xml-declaration-version │ │ ├── index.json │ │ └── index.xml └── index.js └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/bb.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/.github/workflows/bb.yml -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | *.md 3 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/index.js -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/lib/index.js -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/license -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/readme.md -------------------------------------------------------------------------------- /test/fixtures/attribute/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/attribute/index.json -------------------------------------------------------------------------------- /test/fixtures/attribute/index.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/attribute/index.xml -------------------------------------------------------------------------------- /test/fixtures/base/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/base/index.json -------------------------------------------------------------------------------- /test/fixtures/base/index.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/base/index.xml -------------------------------------------------------------------------------- /test/fixtures/cdata/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/cdata/index.json -------------------------------------------------------------------------------- /test/fixtures/cdata/index.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/cdata/index.xml -------------------------------------------------------------------------------- /test/fixtures/comments/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/comments/index.json -------------------------------------------------------------------------------- /test/fixtures/comments/index.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/comments/index.xml -------------------------------------------------------------------------------- /test/fixtures/doctype-apostrophe/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/doctype-apostrophe/index.json -------------------------------------------------------------------------------- /test/fixtures/doctype-apostrophe/index.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/doctype-apostrophe/index.xml -------------------------------------------------------------------------------- /test/fixtures/doctype-name-only/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/doctype-name-only/index.json -------------------------------------------------------------------------------- /test/fixtures/doctype-name-only/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /test/fixtures/doctype-name-trailing-whitespace/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/doctype-name-trailing-whitespace/index.json -------------------------------------------------------------------------------- /test/fixtures/doctype-name-trailing-whitespace/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /test/fixtures/doctype-system-apostrophe/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/doctype-system-apostrophe/index.json -------------------------------------------------------------------------------- /test/fixtures/doctype-system-apostrophe/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /test/fixtures/doctype-system/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/doctype-system/index.json -------------------------------------------------------------------------------- /test/fixtures/doctype-system/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /test/fixtures/doctype-whitespace/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/doctype-whitespace/index.json -------------------------------------------------------------------------------- /test/fixtures/doctype-whitespace/index.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/doctype-whitespace/index.xml -------------------------------------------------------------------------------- /test/fixtures/doctype/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/doctype/index.json -------------------------------------------------------------------------------- /test/fixtures/doctype/index.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/doctype/index.xml -------------------------------------------------------------------------------- /test/fixtures/element/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/element/index.json -------------------------------------------------------------------------------- /test/fixtures/element/index.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/element/index.xml -------------------------------------------------------------------------------- /test/fixtures/html-in-svg-in-html/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/html-in-svg-in-html/index.json -------------------------------------------------------------------------------- /test/fixtures/html-in-svg-in-html/index.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/html-in-svg-in-html/index.xml -------------------------------------------------------------------------------- /test/fixtures/instruction/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/instruction/index.json -------------------------------------------------------------------------------- /test/fixtures/instruction/index.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/instruction/index.xml -------------------------------------------------------------------------------- /test/fixtures/script/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/script/index.json -------------------------------------------------------------------------------- /test/fixtures/script/index.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/script/index.xml -------------------------------------------------------------------------------- /test/fixtures/text/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/text/index.json -------------------------------------------------------------------------------- /test/fixtures/text/index.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/text/index.xml -------------------------------------------------------------------------------- /test/fixtures/xml-declaration-encoding/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/xml-declaration-encoding/index.json -------------------------------------------------------------------------------- /test/fixtures/xml-declaration-encoding/index.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/fixtures/xml-declaration-standalone/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/xml-declaration-standalone/index.json -------------------------------------------------------------------------------- /test/fixtures/xml-declaration-standalone/index.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/fixtures/xml-declaration-version/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/fixtures/xml-declaration-version/index.json -------------------------------------------------------------------------------- /test/fixtures/xml-declaration-version/index.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/test/index.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syntax-tree/xast-util-from-xml/HEAD/tsconfig.json --------------------------------------------------------------------------------