Commit 87e25aa7 authored by Guymestef's avatar Guymestef
Browse files

Reading EntityReference on open when use as a node

Read EntityReference node and add it to the SvgDocument.

```
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="800px" height="800px">
  <g>
    <rect width="200px" height="200px" fill="black" />
    <text x="100px" y="100px" font-family="Verdana" font-size="24" fill="white" text-anchor="middle">&name;</text>
  </g>
</svg>
```
parent 2f2a1e02
......@@ -250,6 +250,10 @@ namespace Svg
case XmlNodeType.Text:
value.Append(reader.Value);
break;
case XmlNodeType.EntityReference:
reader.ResolveEntity();
value.Append(reader.Value);
break;
}
}
catch (Exception exc)
......@@ -411,4 +415,4 @@ namespace Svg
}
}
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment