@@ -203,7 +203,7 @@ xmlNsPtr node_find_ns(xmlNodePtr node)
203
203
}
204
204
}
205
205
206
- int attr_is_equal_ex (xmlAttrPtr node , char * name , char * ns )
206
+ int attr_is_equal_ex (xmlAttrPtr node , const char * name , const char * ns )
207
207
{
208
208
if (name == NULL || ((node -> name ) && strcmp ((char * )node -> name , name ) == 0 )) {
209
209
if (ns ) {
@@ -219,7 +219,7 @@ int attr_is_equal_ex(xmlAttrPtr node, char *name, char *ns)
219
219
return FALSE;
220
220
}
221
221
222
- int node_is_equal_ex (xmlNodePtr node , char * name , char * ns )
222
+ int node_is_equal_ex (xmlNodePtr node , const char * name , const char * ns )
223
223
{
224
224
if (name == NULL || ((node -> name ) && strcmp ((char * )node -> name , name ) == 0 )) {
225
225
if (ns ) {
@@ -236,7 +236,7 @@ int node_is_equal_ex(xmlNodePtr node, char *name, char *ns)
236
236
}
237
237
238
238
239
- xmlAttrPtr get_attribute_ex (xmlAttrPtr node , char * name , char * ns )
239
+ xmlAttrPtr get_attribute_ex (xmlAttrPtr node , const char * name , const char * ns )
240
240
{
241
241
while (node != NULL ) {
242
242
if (attr_is_equal_ex (node , name , ns )) {
@@ -247,7 +247,7 @@ xmlAttrPtr get_attribute_ex(xmlAttrPtr node, char *name, char *ns)
247
247
return NULL ;
248
248
}
249
249
250
- xmlNodePtr get_node_ex (xmlNodePtr node , char * name , char * ns )
250
+ xmlNodePtr get_node_ex (xmlNodePtr node , const char * name , const char * ns )
251
251
{
252
252
while (node != NULL ) {
253
253
if (node_is_equal_ex (node , name , ns )) {
@@ -258,7 +258,7 @@ xmlNodePtr get_node_ex(xmlNodePtr node, char *name, char *ns)
258
258
return NULL ;
259
259
}
260
260
261
- xmlNodePtr get_node_recurisve_ex (xmlNodePtr node , char * name , char * ns )
261
+ xmlNodePtr get_node_recurisve_ex (xmlNodePtr node , const char * name , const char * ns )
262
262
{
263
263
while (node != NULL ) {
264
264
if (node_is_equal_ex (node , name , ns )) {
@@ -274,7 +274,7 @@ xmlNodePtr get_node_recurisve_ex(xmlNodePtr node, char *name, char *ns)
274
274
return NULL ;
275
275
}
276
276
277
- xmlNodePtr get_node_with_attribute_ex (xmlNodePtr node , char * name , char * name_ns , char * attribute , char * value , char * attr_ns )
277
+ xmlNodePtr get_node_with_attribute_ex (xmlNodePtr node , const char * name , const char * name_ns , const char * attribute , const char * value , const char * attr_ns )
278
278
{
279
279
xmlAttrPtr attr ;
280
280
@@ -295,7 +295,7 @@ xmlNodePtr get_node_with_attribute_ex(xmlNodePtr node, char *name, char *name_ns
295
295
return NULL ;
296
296
}
297
297
298
- xmlNodePtr get_node_with_attribute_recursive_ex (xmlNodePtr node , char * name , char * name_ns , char * attribute , char * value , char * attr_ns )
298
+ xmlNodePtr get_node_with_attribute_recursive_ex (xmlNodePtr node , const char * name , const char * name_ns , const char * attribute , const char * value , const char * attr_ns )
299
299
{
300
300
while (node != NULL ) {
301
301
if (node_is_equal_ex (node , name , name_ns )) {
0 commit comments