mirror of
https://github.com/nushell/nushell.git
synced 2025-07-26 03:40:19 +02:00
.azure
.cargo
.circleci
.github
.theia
assets
crates
debian
docker
docs
commands
README.md
alias.md
append.md
autoview.md
cal.md
calc.md
cd.md
compact.md
config.md
count.md
date.md
debug.md
default.md
du.md
echo.md
enter.md
every.md
exit.md
fetch.md
first.md
format.md
from-csv.md
from-ics.md
from-ini.md
from-json.md
from-ods.md
from-toml.md
from-tsv.md
from-url.md
from-vcf.md
from-xlsx.md
from-xml.md
from-yaml.md
from.md
get.md
group-by.md
headers.md
help.md
histogram.md
history.md
inc.md
insert.md
last.md
lines.md
math.md
nth.md
open.md
pivot.md
prepend.md
ps.md
pwd.md
random.md
reject.md
rename.md
reverse.md
save.md
select.md
shells.md
shuffle.md
size.md
skip-while.md
skip.md
sort-by.md
split-column.md
split-row.md
start.md
str.md
sys.md
tags.md
textview_config.md
to-csv.md
to-json.md
to-toml.md
to-tsv.md
to-url.md
to-yaml.md
to.md
touch.md
trim.md
uniq.md
update.md
version.md
where.md
which.md
wrap.md
docker.md
philosophy.md
images
src
tests
wix
.dockerignore
.editorconfig
.gitignore
.gitpod.Dockerfile
.gitpod.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Cargo.lock
Cargo.toml
LICENSE
Makefile.toml
README.build.txt
README.md
TODO.md
build.rs
features.toml
rustfmt.toml
This adds a top-level document for the new `from` command, with a list of links of all the subcommands. All the from-* subcommands keep their filename, but the content is updated to use the new subcommand syntax. Needs matching update for to* Ref #1709
874 B
874 B
from xml
Parse text as .xml
and create table. Use this when nushell cannot dertermine the input file extension.
Syntax: from xml
Examples
Let's say we've got a file in xml
format but the file extension is different so Nu can't auto-format it:
> open world.txt
<?xml version="1.0" encoding="utf-8"?>
<world>
<continent>Africa</continent>
<continent>Antarctica</continent>
<continent>Asia</continent>
<continent>Australia</continent>
<continent>Europe</continent>
<continent>North America</continent>
<continent>South America</continent>
</world>
We can use from xml
to read the input like a xml
file:
> open world.txt | from xml
━━━━━━━━━━━━━━━━
world
────────────────
[table 7 rows]
━━━━━━━━━━━━━━━━