# Don't show image from network

**URL:** <https://forum.graphviz.org/t/dont-show-image-from-network/1031>\
**Category:** Help\
**Created:** [February 12, 2022, 5:56am UTC](https://forum.graphviz.org/t/dont-show-image-from-network/1031 "2022-02-12T05:56:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuruotong1](https://avatars.discourse-cdn.com/v4/letter/y/9fc29f/32.png) [@yuruotong1](https://forum.graphviz.org/u/yuruotong1)\
**Post date:** [February 12, 2022, 5:56am UTC](https://forum.graphviz.org/t/dont-show-image-from-network/1031/1 "2022-02-12T05:56:13Z")

</div>

My dot is:

`digraph structs { A [label="mmm" image="https://iconsapi.com/5ee261ede4b0b788a932a2eb.svg" shape=none]; }`

The result as follow.

 ![image](https://global.discourse-cdn.com/graphviz/original/1X/be5524947621abac325349da157752296c1a3516.png)

Why the picture don’t show?

---

<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:** [February 12, 2022, 4:45pm UTC](https://forum.graphviz.org/t/dont-show-image-from-network/1031/2 "2022-02-12T16:45:06Z")

</div>

For security reasons, images are seemingly required to be local. See [How to handle image hosted on a server with d3-graphviz ( if it's implemented )?](https://forum.graphviz.org/t/how-to-handle-image-hosted-on-a-server-with-d3-graphviz-if-its-implemented/1013)

---

<div class="post-metadata">

**Author:** ![yuruotong1](https://avatars.discourse-cdn.com/v4/letter/y/9fc29f/32.png) [@yuruotong1](https://forum.graphviz.org/u/yuruotong1)\
**Post date:** [February 13, 2022, 12:58am UTC](https://forum.graphviz.org/t/dont-show-image-from-network/1031/3 "2022-02-13T00:58:19Z")

</div>

It seem like it. When I download the image locally, it’s no problem

---

<div class="post-metadata">

**Author:** ![yuruotong1](https://avatars.discourse-cdn.com/v4/letter/y/9fc29f/32.png) [@yuruotong1](https://forum.graphviz.org/u/yuruotong1)\
**Post date:** [February 13, 2022, 1:37am UTC](https://forum.graphviz.org/t/dont-show-image-from-network/1031/4 "2022-02-13T01:37:24Z")

</div>

The dot loads svg only if the svg file contains “\<?xml…\>”:

```auto
<?xml version="1.0" encoding="UTF-8" standalone="no"?>

```

When I delete the label it doesn’t work.Web svg have no “\<?xm…\>” tag. Is that the problem?

 ![image](https://global.discourse-cdn.com/graphviz/original/1X/ba78ba77a65e206fa74ce66295ef916e02bd52fc.png)

---

<div class="post-metadata">

**Author:** ![scnorth](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/scnorth/32/89_2.png) [@scnorth](https://forum.graphviz.org/u/scnorth)\
**Post date:** [February 13, 2022, 12:59pm UTC](https://forum.graphviz.org/t/dont-show-image-from-network/1031/5 "2022-02-13T12:59:46Z")

</div>

If I’m not mistaken, what you are seeing is correct behavior for an XML 1.1 parser. Graphviz relies on [libexpat](https://libexpat.github.io/doc/expat-internals-parsing-xml-declarations/). This is not a feature that we control.

The [specification](https://www.w3.org/TR/xml11/#sec-prolog-dtd) says that a correct XML document **must** begin with an XML version declaration.

---

<div class="post-metadata">

**Author:** ![yuruotong1](https://avatars.discourse-cdn.com/v4/letter/y/9fc29f/32.png) [@yuruotong1](https://forum.graphviz.org/u/yuruotong1)\
**Post date:** [February 13, 2022, 2:25pm UTC](https://forum.graphviz.org/t/dont-show-image-from-network/1031/6 "2022-02-13T14:25:15Z")

</div>

Thank you for your answer.
