<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      Le 22/05/2017 à 00:32, Jens Simon Strom a écrit :<br>
    </div>
    <blockquote cite="mid:59221585.7000204@hslmg.de" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      Hi,<br>
      I want to extract <font face="Courier New, Courier, monospace">lat</font>,
      <font face="Courier New, Courier, monospace">lon</font> and <font
        face="Courier New, Courier, monospace"><rte>-name</font>
      from gmx files. See the following reduced example:<br>
-----------------------------------------------------------------------------------------------------------------------------------------<br>
      <?xml version="1.0" encoding="UTF-8" standalone="no"
      ?><gpx xmlns=<a moz-do-not-send="true"
        class="moz-txt-link-rfc2396E"
        href="http://www.topografix.com/GPX/1/1">"http://www.topografix.com/GPX/1/1"</a>
      creator="MEDIA-TOURS" version="1.1" xmlns:xsi=<a
        moz-do-not-send="true" class="moz-txt-link-rfc2396E"
        href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
      xsi:schemaLocation=<a moz-do-not-send="true"
        class="moz-txt-link-rfc2396E"
href="http://www.topografix.com/GPX/1/1http://www.topografix.com/GPX/1/1/gpx.xsd">"http://www.topografix.com/GPX/1/1
        http://www.topografix.com/GPX/1/1/gpx.xsd"</a>><br>
      <!-- <br>
      line of comments<br>
      ...<br>
      line of comments<br>
       --><br>
      <rte><br>
      <name>route_1</name><br>
      <rtept lat="52.00424932154729" lon="8.875365257263184"><br>
      <name>1 Start</name><br>
      </rtept><br>
      <rtept lat="52.00319255643224" lon="8.878369331359863"><br>
      <name>11 station</name><br>
      </rtept><br>
      <rtept lat="52.00271700399025" lon="8.879871368408203"><br>
      <name>111 destination.</name><br>
      </rtept><br>
      </rte><br>
      </gpx><br>
------------------------------------------------------------------------------------------------------------------------------------<br>
      <font face="Courier New, Courier, monospace">lat </font><font
        face="Courier New, Courier, monospace">and </font><font
        face="Courier New, Courier, monospace">lon</font>  should be
      collected as numerical colum vectors,  <font face="Courier New,
        Courier, monospace">name </font>as a colum of strings. <br>
      <br>
      Which commands would you recommend? Is reading by <font
        face="Helvetica, Arial, sans-serif">mgetl</font> and retrieving
      by <font face="Helvetica, Arial, sans-serif">regexp</font>
      recommendable?<br>
    </blockquote>
    <br>
    xmlXPath() is made for parsing xml documents and extracting selected
    informations.<br>
    getPreferencesValue() may also help. It is based on xmlXPath()<br>
    <br>
    HTH<br>
    Samuel<br>
    <br>
  </body>
</html>