File: readxml.tex

package info (click to toggle)
sollya 8.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,592 kB
  • sloc: ansic: 124,655; yacc: 7,543; lex: 2,440; makefile: 888; cpp: 77
file content (37 lines) | stat: -rw-r--r-- 1,662 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
\subsection{readxml}
\label{labreadxml}
\noindent Name: \textbf{readxml}\\
\phantom{aaa}reads an expression written as a MathML-Content-Tree in a file\\[0.2cm]
\noindent Library name:\\
\verb|   sollya_obj_t sollya_lib_readxml(sollya_obj_t)|\\[0.2cm]
\noindent Usage: 
\begin{center}
\textbf{readxml}(\emph{filename}) : \textsf{string} $\rightarrow$ \textsf{function} $|$ \textsf{error}\\
\end{center}
Parameters: 
\begin{itemize}
\item \emph{filename} represents a character sequence indicating a file name
\end{itemize}
\noindent Description: \begin{itemize}

\item The command \textbf{readxml} is now considered DEPRECATED in \sollya.

\item \textbf{readxml}(\emph{filename}) reads the first occurrence of a lambda
   application with one bounded variable on applications of the supported
   basic functions in file \emph{filename} and returns it as a \sollya
   functional expression.
    
   If the file \emph{filename} does not contain a valid MathML-Content tree,
   \textbf{readxml} tries to find an "annotation encoding" markup of type
   "sollya/text". If this annotation contains a character sequence
   that can be parsed by \textbf{parse}, \textbf{readxml} returns that expression.  Otherwise
   \textbf{readxml} displays a warning and returns an \textbf{error} variable of type
   \textsf{error}.
\end{itemize}
\noindent Example 1: 
\begin{center}\begin{minipage}{15cm}\begin{Verbatim}[frame=single]
> readxml("readxmlexample.xml");
2 + x + exp(sin(x))
\end{Verbatim}
\end{minipage}\end{center}
See also: \textbf{printxml} (\ref{labprintxml}), \textbf{readfile} (\ref{labreadfile}), \textbf{parse} (\ref{labparse}), \textbf{error} (\ref{laberror})