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

NAME

6       xmlcopy - Provides token reconstruction facilities to gawk-xml.
7

SYNOPSIS

9       @include "xmlcopy"
10
11       result = XmlToken()
12       XmlCopy()
13
14       XmlSetAttribute(name, value)
15       XmlIgnoreAttribute(name)
16

DESCRIPTION

18       The xmlcopy awk library adds the ability to reconstruct the current XML
19       token. The token can be modified before reconstruction.
20
21   Token reconstruction
22       XmlToken()
23              Returns an XML string that represents  the  current  token.  The
24              token  is  reconstructed from the predefined variables XMLEVENT,
25              XMLNAME, XMLATTR and $0. They  can  have  the  original  current
26              token values or user modified ones.
27
28       XmlCopy()
29              Writes  an  XML  string  that  represents  the current token, as
30              returned by XmlToken().
31
32   Token modification
33       XmlSetAttribute(name, value)
34              Adds or replaces the (name, value) entry in XMLATTR.  Adds  name
35              to $0 if not already in it.
36
37       XmlIgnoreAttribute(name)
38              Removes  name  from  $0,  so  XmlToken()  will  ignore it. Keeps
39              XMLATTR unchanged..
40

NOTES

42       The xmlcopy library includes the xmlbase library. Its functionality  is
43       implicitly available.
44

BUGS

46       When  an  XML declaration is reconstructed, the advertised encoding may
47       not match the actual encoding.
48

SEE ALSO

50       XML Processing With gawk, xmlbase(3am),  xmltree(3am),  xmlsimple(3am),
51       xmlwrite(3am).
52

AUTHOR

54       Manuel Collado, m-collado@users.sourceforge.net.
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                     xmlcopy(3am)
Impressum