在C#应用程序中加载XML文件时,我得到了
名称不能以"1"字符开头,十六进制值0x31.第2行,第2位.
XML标记就像这样开始.
<version="1.0" encoding="us-ascii" standalone="yes" />
<1212041205115912>
Run Code Online (Sandbox Code Playgroud)
我不应该不惜一切代价改变这个标签.
我该如何解决这个问题?
Form2使用Infragistics ultraTabControl.在选项卡上更改即时显示Form1.
我有一个PictureBox动画指定GIF
我正在显示这样的Form1.
Form1 frmOne=new Form1();
frmOne.Show();
Run Code Online (Sandbox Code Playgroud)
GIF 不是在播放动画.
工作的
<g>
<foreignObject width="100%" height="100%">
<body>
<div style="width:4em;height:4em">
<object height="100%" width="100%"
data="icons/cloud.svg" type="image/svg+xml">
</object>
</div>
</body>
</foreignObject>
<text x="0" y="15" fill="red">I love SVG</text>
</g>
</svg>
Run Code Online (Sandbox Code Playgroud)
不工作
我试图使用d3js动态添加相同的东西.但它只是添加DOM元素结构,而不是加载SVG图像.
d3.select("body").append("svg")
.append("foreignOject").attr("height","100%").attr("width","100%")
.append("body")
.append("div").style("width","4em").style("height","4em")
.append("object").attr("height","100%").attr("width","100%")
.attr("data","icons/cloud.svg").attr("type","image/svg+xml");
Run Code Online (Sandbox Code Playgroud)
xhtml之后:前缀也一样.我不知道为什么'object'标签没有加载SVG图像.请检查以下SC:

c# ×2
d3.js ×1
infragistics ×1
javascript ×1
picturebox ×1
svg ×1
winforms ×1
xml ×1
xmldocument ×1