el 05-18-2009 11:20 AM
Hola
¿Usando los VI´s para XML como puedo obtener los Childs de un tag en especifico ya que al obtenerlos en un Array este contiene espacios Vacios?
Anexo VI.
http://rapidshare.com/files/234441683/ParseXML2.vi.html
¿Cuando se guarda un fichero de texto es posible darle algun estilo al documento?
resultado de LabVIEW
<?xml version='1.0' standalone='yes' ?>
<LVData xmlns="http://www.ni.com/LVData">
<Version>8.6.1</Version>
<Cluster>
<Name>cluster</Name>
<NumElts>4</NumElts>
<Path>
<Name>ErrorHandler</Name>
<Val>C:\Users\Antonio\Documents\LabVIEW Data\Midgar\2009\may\16\ErrorHandler</Val>
</Path>
<Path>
<Name>Reportes</Name>
<Val>C:\Users\Antonio\Documents\LabVIEW Data\Midgar\2009\may\16\Reportes</Val>
</Path>
<Path>
<Name>Zip</Name>
<Val>C:\Users\Antonio\Documents\LabVIEW Data\Midgar\2009\may\16\Zip</Val>
</Path>
<Path>
<Name>Config</Name>
<Val>C:\Users\Antonio\Documents\LabVIEW Data\Midgar\Config</Val>
</Path>
</Cluster>
</LVData>
Resultado desado.
<LVData xmlns="http://www.ni.com/LVData">
<Version>8.6.1</Version>
<Cluster>
<Name>cluster</Name>
<NumElts>4</NumElts>
<Path>
<Name>ErrorHandler</Name>
<Val>C:\Users\Antonio\Documents\LabVIEW Data\Midgar\2009\may\16\ErrorHandler</Val>
</Path>
<Path>
<Name>Reportes</Name>
<Val>C:\Users\Antonio\Documents\LabVIEW Data\Midgar\2009\may\16\Reportes</Val>
</Path>
<Path>
<Name>Zip</Name>
<Val>C:\Users\Antonio\Documents\LabVIEW Data\Midgar\2009\may\16\Zip</Val>
</Path>
<Path>
<Name>Config</Name>
<Val>C:\Users\Antonio\Documents\LabVIEW Data\Midgar\Config</Val>
</Path>
</Cluster>
</LVData>
el 05-18-2009 12:53 PM
Hola
Creo que una buena opcion es usar XPath,eh descargado un codigo ejemplo de este link http://support.microsoft.com/kb/317069/es basado en la libreria System.Xml.Path y eh copiado el codigo en LabVIEW pero no me funciona bien,pero con Xpath pude resolver mi segunda pregunta sobre como dar el estilo.
Anexo Vi.
http://rapidshare.com/files/234470020/Xpath.zip.html
el 05-20-2009 08:26 AM