Visual Basic Foro
Programación => Visual Basic 6 => Mensaje iniciado por: TOLO68 en Octubre 03, 2020, 08:00:00 pm
-
Hola a todos, alguien sabe como leer este archivo y extraer los datos????
He visto que VB6 tiene una libreria MSXML pero no se como usarla, o si tambien se puede hacer con codigo fuente.
Gracias.
<svg xmlns="http://www.w3.org/2000/svg" height="2.22222in" xmlns:svg="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" x="0in" width="3.33333in" y="0in" viewBox="0 0 240 160">
<g partID="57470">
<g id="board" >
<rect fill-opacity="0.5" height="159.424" width="239.424" x="0.288" y="0.288" id="boardoutline" stroke="black" stroke-width="0.5" fill="none"/>
</g>
</g>
<g partID="57511">
<g transform="translate(11.6969,11.304)">
<g id="copper1" >
<circle cx="2.7" cy="3.096" r="1.98" id="connector0pin" stroke="black" stroke-width="1.44" fill="none"/>
<circle cx="31.5" cy="3.096" r="1.98" id="connector1pin" stroke="black" stroke-width="1.44" fill="none"/>
</g>
</g>
</g>
<g partID="57541">
<g transform="translate(11.6969,25.704)">
<g id="copper1" >
<circle cx="2.7" cy="3.096" r="1.98" id="connector0pin" stroke="black" stroke-width="1.44" fill="none"/>
<circle cx="31.5" cy="3.096" r="1.98" id="connector1pin" stroke="black" stroke-width="1.44" fill="none"/>
</g>
</g>
</g>
<g partID="57570">
<line y2="16.46" x1="14.3969" x2="14.3969" stroke-linecap="round" stroke="black" stroke-width="1.728" y1="26.74"/>
</g>
<g partID="57640">
<line y2="16.46" x1="43.1969" x2="43.1969" stroke-linecap="round" stroke="black" stroke-width="3.456" y1="26.74"/>
</g>
</svg>
-
Hola Tolo si se puede leer agregando la referencia Microsoft Xml
aca hay un ejemplo
https://www.recursosvisualbasic.com.ar/htm/trucos-codigofuente-visual-basic/100-ejemplo-xml-visual-basic.htm
hay dos formas de hacerlo una es ir por ruta directamente al nodo pero este debe siempre existir
y otra forma es recorrer todos los nodos hasta encontrar el que buscas.
que dato queres leer precisamente ?
-
Hola TOLO68
Dale una mirada a estos artículos
- [size=78%]https://www.vbforums.com/showthread.php?878757-vbRichClient5-SVGRenderBox-with-string-instead-of-filename (https://www.vbforums.com/showthread.php?878757-vbRichClient5-SVGRenderBox-with-string-instead-of-filename)[/size]
- [/size][size=78%]https://www.vbforums.com/showthread.php?845873-FontAwesome-SVG-Resources-(per-vbRichClient5) (https://www.vbforums.com/showthread.php?845873-FontAwesome-SVG-Resources-(per-vbRichClient5))[/size]
Saludos, desde algún lugar de Lima-Perú