php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_xml.h File Reference

Go to the source code of this file.

Macros

#define get_attribute(node, name)
 
#define get_node(node, name)
 
#define get_node_recursive(node, name)
 
#define get_node_with_attribute(node, name, attr, val)
 
#define get_node_with_attribute_recursive(node, name, attr, val)
 
#define node_is_equal(node, name)
 
#define attr_is_equal(node, name)
 
#define FOREACHATTRNODE(n, c, i)
 
#define FOREACHATTRNODEEX(n, c, ns, i)
 
#define FOREACHNODE(n, c, i)
 
#define FOREACHNODEEX(n, c, ns, i)
 
#define ENDFOREACH(n)
 

Functions

xmlDocPtr soap_xmlParseFile (const char *filename)
 
xmlDocPtr soap_xmlParseMemory (const void *buf, size_t size)
 
xmlNsPtr attr_find_ns (xmlAttrPtr node)
 
xmlNsPtr node_find_ns (xmlNodePtr node)
 
int attr_is_equal_ex (xmlAttrPtr node, char *name, char *ns)
 
int node_is_equal_ex (xmlNodePtr node, char *name, char *ns)
 
xmlAttrPtr get_attribute_ex (xmlAttrPtr node, char *name, char *ns)
 
xmlNodePtr get_node_ex (xmlNodePtr node, char *name, char *ns)
 
xmlNodePtr get_node_recursive_ex (xmlNodePtr node, char *name, char *ns)
 
xmlNodePtr get_node_with_attribute_ex (xmlNodePtr node, char *name, char *name_ns, char *attribute, char *value, char *attr_ns)
 
xmlNodePtr get_node_with_attribute_recursive_ex (xmlNodePtr node, char *name, char *name_ns, char *attribute, char *value, char *attr_ns)
 
void parse_namespace (const xmlChar *inval, const char **value, char **namespace)
 

Macro Definition Documentation

◆ attr_is_equal

#define attr_is_equal ( node,
name )
Value:
#define NULL
Definition gdcache.h:45
int attr_is_equal_ex(xmlAttrPtr node, char *name, char *ns)
Definition php_xml.c:206
zend_string * name

Definition at line 28 of file php_xml.h.

◆ ENDFOREACH

#define ENDFOREACH ( n)
Value:
} \
} while ((n = n->next));
zend_long n
Definition ffi.c:4979

Definition at line 72 of file php_xml.h.

◆ FOREACHATTRNODE

#define FOREACHATTRNODE ( n,
c,
i )
Value:
#define FOREACHATTRNODEEX(n, c, ns, i)
Definition php_xml.h:45

Definition at line 44 of file php_xml.h.

◆ FOREACHATTRNODEEX

#define FOREACHATTRNODEEX ( n,
c,
ns,
i )
Value:
do { \
if (n == NULL) { \
break; \
} \
if (c) { \
i = get_attribute_ex(n,c,ns); \
} else { \
i = n; \
} \
if (i != NULL) { \
n = i;
xmlAttrPtr get_attribute_ex(xmlAttrPtr node, char *name, char *ns)
Definition php_xml.c:239

Definition at line 45 of file php_xml.h.

◆ FOREACHNODE

#define FOREACHNODE ( n,
c,
i )
Value:
#define FOREACHNODEEX(n, c, ns, i)
Definition php_xml.h:59

Definition at line 58 of file php_xml.h.

◆ FOREACHNODEEX

#define FOREACHNODEEX ( n,
c,
ns,
i )
Value:
do { \
if (n == NULL) { \
break; \
} \
if (c) { \
i = get_node_ex(n,c,NULL); \
} else { \
i = n; \
} \
if(i != NULL) { \
n = i;
xmlNodePtr get_node_ex(xmlNodePtr node, char *name, char *ns)
Definition php_xml.c:250

Definition at line 59 of file php_xml.h.

◆ get_attribute

#define get_attribute ( node,
name )
Value:

Definition at line 22 of file php_xml.h.

◆ get_node

#define get_node ( node,
name )
Value:

Definition at line 23 of file php_xml.h.

◆ get_node_recursive

#define get_node_recursive ( node,
name )
Value:
xmlNodePtr get_node_recursive_ex(xmlNodePtr node, char *name, char *ns)

Definition at line 24 of file php_xml.h.

◆ get_node_with_attribute

#define get_node_with_attribute ( node,
name,
attr,
val )
Value:
new_type attr
Definition ffi.c:4364
zval * val
Definition ffi.c:4262
xmlNodePtr get_node_with_attribute_ex(xmlNodePtr node, char *name, char *name_ns, char *attribute, char *value, char *attr_ns)
Definition php_xml.c:277

Definition at line 25 of file php_xml.h.

◆ get_node_with_attribute_recursive

#define get_node_with_attribute_recursive ( node,
name,
attr,
val )
Value:
xmlNodePtr get_node_with_attribute_recursive_ex(xmlNodePtr node, char *name, char *name_ns, char *attribute, char *value, char *attr_ns)
Definition php_xml.c:298

Definition at line 26 of file php_xml.h.

◆ node_is_equal

#define node_is_equal ( node,
name )
Value:
int node_is_equal_ex(xmlNodePtr node, char *name, char *ns)
Definition php_xml.c:222

Definition at line 27 of file php_xml.h.

Function Documentation

◆ attr_find_ns()

xmlNsPtr attr_find_ns ( xmlAttrPtr node)

Definition at line 186 of file php_xml.c.

◆ attr_is_equal_ex()

int attr_is_equal_ex ( xmlAttrPtr node,
char * name,
char * ns )

Definition at line 206 of file php_xml.c.

◆ get_attribute_ex()

xmlAttrPtr get_attribute_ex ( xmlAttrPtr node,
char * name,
char * ns )

Definition at line 239 of file php_xml.c.

◆ get_node_ex()

xmlNodePtr get_node_ex ( xmlNodePtr node,
char * name,
char * ns )

Definition at line 250 of file php_xml.c.

◆ get_node_recursive_ex()

xmlNodePtr get_node_recursive_ex ( xmlNodePtr node,
char * name,
char * ns )

◆ get_node_with_attribute_ex()

xmlNodePtr get_node_with_attribute_ex ( xmlNodePtr node,
char * name,
char * name_ns,
char * attribute,
char * value,
char * attr_ns )

Definition at line 277 of file php_xml.c.

◆ get_node_with_attribute_recursive_ex()

xmlNodePtr get_node_with_attribute_recursive_ex ( xmlNodePtr node,
char * name,
char * name_ns,
char * attribute,
char * value,
char * attr_ns )

Definition at line 298 of file php_xml.c.

◆ node_find_ns()

xmlNsPtr node_find_ns ( xmlNodePtr node)

Definition at line 197 of file php_xml.c.

◆ node_is_equal_ex()

int node_is_equal_ex ( xmlNodePtr node,
char * name,
char * ns )

Definition at line 222 of file php_xml.c.

◆ parse_namespace()

void parse_namespace ( const xmlChar * inval,
const char ** value,
char ** namespace )

Definition at line 319 of file php_xml.c.

◆ soap_xmlParseFile()

xmlDocPtr soap_xmlParseFile ( const char * filename)

Definition at line 77 of file php_xml.c.

◆ soap_xmlParseMemory()

xmlDocPtr soap_xmlParseMemory ( const void * buf,
size_t size )

Definition at line 133 of file php_xml.c.