paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Special characters in the log files


From: Roman Krashanitsa
Subject: Re: [Paparazzi-devel] Special characters in the log files
Date: Mon, 31 Aug 2009 10:05:28 -0700

Andreas, try to just cut that part off, find the actual log in that file before parsing.
 
Thats what I would do anyway.
 
Roman

2009/8/31 Andreas Gaeb <address@hidden>
Hello everybody,

I am trying to parse the log structure xml files (*.log in
$PAPARAZZI_HOME/var/logs/) with Matlab's standard xml parser, which is
basically an instance of the standard Java parser
javax.xml.parsers.DocumentBuilderFactory.
This parser fails with non-recoverable errors because the characters &,
< and > show up inside attributes like e.g. in the lines

<circle WP="_BASELEG" RADIUS="nav_radius"
UNTIL="NavQdrCloseTo(DegOfRad(baseleg_out_qdr)-10) && 10 >
fabs(estimator_z - WaypointAlt(WP__BASELEG))"/>

or

<block NAME="Standby" KEY="<Control>a" STRIP_ICON="home.png"
STRIP_BUTTON="Standby">

As a workaround it is of course possible to edit the *.log files by
hand, but would it be possible for the future to replace these
characters by &amp; &lt; and &gt;, respectively?

Thanks in advance.

Regards,
       Andreas


_______________________________________________
Paparazzi-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/paparazzi-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]