# XML error when running command

**URL:** <https://forum.graphviz.org/t/xml-error-when-running-command/1515>\
**Category:** Uncategorized\
**Created:** [March 15, 2023, 8:20pm UTC](https://forum.graphviz.org/t/xml-error-when-running-command/1515 "2023-03-15T20:20:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hemald](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@hemald](https://forum.graphviz.org/u/hemald)\
**Post date:** [March 15, 2023, 8:20pm UTC](https://forum.graphviz.org/t/xml-error-when-running-command/1515/1 "2023-03-15T20:20:13Z")

</div>

After installin Graphviz 7.1.0 exe on my windows system. I ran these commands  
echo ‘digraph { a-\> b }’ | dot -Tsvg \> output.svg  
explorer file:///C:/Temp/output.svg

I am getting the error as  
“This XML file does not appear to have any style information associated with it. The document tree is shown below.”

---

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [March 15, 2023, 9:31pm UTC](https://forum.graphviz.org/t/xml-error-when-running-command/1515/2 "2023-03-15T21:31:48Z")

</div>

The command `echo 'digraph { a-> b }'` is a Linux OS command and does not work on Windows. OK, it works, but it does not do anything useful.  
And because **dot** received no useful input, it created no useful output.

Try this:

- use a text editor like notepad, emacs, vim, (not **word**!) and create a file that looks like this:

```auto
digraph X { 
  a->b->c
}

```

- save it in some findable directory
- name it something like myFirst.gv
- using the cmd window (or powershell) type  
`dot -Tsvg myFirst.gv >myFirst.svg`

Should work!

---

<div class="post-metadata">

**Author:** ![hemald](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@hemald](https://forum.graphviz.org/u/hemald)\
**Post date:** [March 15, 2023, 10:03pm UTC](https://forum.graphviz.org/t/xml-error-when-running-command/1515/3 "2023-03-15T22:03:52Z")

</div>

> [@steveroush](#):
>
> dot -Tsvg myFirst.gv \>myFirst.svg

Thank you so much… This worked.Appreciate your help
