1xmlbase(3am)               GNU Awk Extension Modules              xmlbase(3am)
2
3
4

NAME

6       xmlbase - Provides some basic functionality to gawk-xml.
7

SYNOPSIS

9       @include "xmlbase"
10
11       result = XmlEscape(str)
12       result = XmlEscapeQuote(str)
13
14       XmlWriteError(message)
15       XmlCheckError()
16

DESCRIPTION

18       The  xmlbase  awk  library  adds  some basic facilities to the gawk-xml
19       extension.
20
21       Automatic error reporting
22              The xmlbase library contains a rule that  automatically  invokes
23              XmlCheckError() at ENDFILE.
24
25       XmlEscape(str)
26              Returns  the  string  argument with the basic XML metacharacters
27              (<, >, &) replaced by their predefined XML escape sequences.
28
29       XmlEscapeQuote(str)
30              Returns the string argument with all the XML metacharacters  (<,
31              >, &, ", ') replaced by their predefined XML escape sequences.
32
33       XmlWriteError(message)
34              Prints  a formatted diagnostic message showing FILENAME, XMLROW,
35              XMLCOL, XMLLEN and the string argument.
36
37       XmlCheckError()
38              If either XMLERROR or ERRNO have a non-null value, invokes  Xml‐
39              WriteError()  on  it.  XMLERROR  takes precedence over ERRNO. If
40              ERRNO is used then it is  cleared,  to  avoid  duplicated  error
41              reports.
42

NOTES

44       The xmlbase library automatically loads the xml gawk extension.
45

BUGS

47       The error reporting facility may not suit everybody.
48

AUTHOR

50       Manuel Collado, m-collado@users.sourceforge.net.
51

SEE ALSO

53       XML  Processing  With gawk, xmlcopy(3am), xmltree(3am), xmlsimple(3am),
54       xmlwrite(3am).
55

COPYING PERMISSIONS

57       Copyright (C) 2017, Free Software Foundation, Inc.
58
59       Permission is granted to make and distribute verbatim  copies  of  this
60       manual  page  provided  the copyright notice and this permission notice
61       are preserved on all copies.
62
63       Permission is granted to copy and distribute modified versions of  this
64       manual  page  under  the conditions for verbatim copying, provided that
65       the entire resulting derived work is distributed under the terms  of  a
66       permission notice identical to this one.
67
68       Permission  is granted to copy and distribute translations of this man‐
69       ual page into another language, under the above conditions for modified
70       versions,  except that this permission notice may be stated in a trans‐
71       lation approved by the Foundation.
72
73
74
75GAWK Extension Library (gawkextlibJ)anuary 2017                     xmlbase(3am)
Impressum