ddc
xml_util.h
Go to the documentation of this file.
1 /*
2 www.sourceforge.net/projects/tinyxpath
3 Copyright (c) 2002-2004 Yves Berquin (yvesb@users.sourceforge.net)
4 
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any
7 damages arising from the use of this software.
8 
9 Permission is granted to anyone to use this software for any
10 purpose, including commercial applications, and to alter it and
11 redistribute it freely, subject to the following restrictions:
12 
13 1. The origin of this software must not be misrepresented; you must
14 not claim that you wrote the original software. If you use this
15 software in a product, an acknowledgment in the product documentation
16 would be appreciated but is not required.
17 
18 2. Altered source versions must be plainly marked as such, and
19 must not be misrepresented as being the original software.
20 
21 3. This notice may not be removed or altered from any source
22 distribution.
23 */
24 
30 #ifndef __XML_UTIL_H
31 #define __XML_UTIL_H
32 
33 #include "tinyxml.h"
34 
35 namespace TinyXPath
36 {
37  extern int i_xml_cardinality (const TiXmlElement * XEp_elem, bool o_by_name);
38  extern int i_xml_family_size (const TiXmlElement * XEp_elem);
39 }
40 
41 #endif
42 
43 /*--- emacs style variables ---
44  * Local Variables:
45  * mode: C++
46  * c-file-style: "ellemtel"
47  * c-basic-offset: 4
48  * tab-width: 8
49  * indent-tabs-mode: nil
50  * End:
51  */
Definition: action_store.cpp:32
int i_xml_family_size(const TiXmlElement *XEp_elem)
Family size : Nb of sibling elements (including ourselves)
Definition: xml_util.cpp:84
int i_xml_cardinality(const TiXmlElement *XEp_elem, bool o_by_name)
Cardinality in the terms of XPath counts from 1 for the first element.
Definition: xml_util.cpp:36
Definition: tinyxml.h:779