4
%% Copyright Ericsson AB 2009. All Rights Reserved.
6
%% The contents of this file are subject to the Erlang Public License,
7
%% Version 1.1, (the "License"); you may not use this file except in
8
%% compliance with the License. You should have received a copy of the
9
%% Erlang Public License along with this software. If not, it can be
10
%% retrieved online at http://www.erlang.org/.
12
%% Software distributed under the License is distributed on an "AS IS"
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
%% the License for the specific language governing rights and limitations
19
%% <michael.remond@IDEALX.com>: suggested #xmlDocument{}
21
%%----------------------------------------------------------------------
22
%% #0. BASIC INFORMATION
23
%%----------------------------------------------------------------------
25
%% Author : Ulf Wiger <ulf.wiger@ericsson.com>
27
%% Description : Record and macro definitions for xmerl
28
%%----------------------------------------------------------------------
32
%% records generated by the scanner
33
%% --------------------------------
37
vsn, % string() XML version
38
encoding, % string() Character encoding
39
standalone, % (yes | no)
40
attributes % [#xmlAttribute()] Other attributes than above
44
-record(xmlAttribute,{
46
expanded_name=[],% atom() | {string(),atom()}
47
nsinfo = [], % {Prefix, Local} | []
48
namespace = [], % inherits the element's namespace
49
parents = [], % [{atom(),integer()}]
51
language = [], % inherits the element's language
52
value, % IOlist() | atom() | integer()
53
normalized % atom() one of (true | false)
57
-record(xmlNamespace,{
62
%% namespace node - i.e. a {Prefix, URI} pair
63
%% TODO: these are not currently used?? /RC
70
%% content = [#xmlElement()|#xmlText()|#xmlPI()|#xmlComment()|#xmlDecl()]
73
expanded_name = [], % string() | {URI,Local} | {"xmlns",Local}
74
nsinfo = [], % {Prefix, Local} | []
75
namespace=#xmlNamespace{},
76
parents = [], % [{atom(),integer()}]
78
attributes = [], % [#xmlAttribute()]
80
language = "", % string()
81
xmlbase="", % string() XML Base path, for relative URI:s
82
elementdef=undeclared % atom(), one of [undeclared | prolog | external | element]
86
%% IOlist = [char() | binary () | IOlist]
88
parents = [], % [{atom(),integer()}]
90
language = [],% inherits the element's language
92
type = text % atom() one of (text|cdata)
97
parents = [], % [{atom(),integer()}]
99
language = [], % inherits the element's language
103
%% processing instruction
110
-record(xmlDocument,{
115
%% XPATH (xmerl_xpath, xmerl_pred_funcs) records
117
-record(xmlContext, {
120
context_position = 1,