Main Page | File List | File Members

XMLElm.h

Go to the documentation of this file.
00001 /* -*- mode: c++; -*-
00002  *-----------------------------------------------------------------------------
00003  * $RCSfile: XMLElm.h,v $
00004  *
00005  * See Copyright for the status of this software.
00006  *
00007  * The OpenSOAP Project
00008  * http://opensoap.jp/
00009  *-----------------------------------------------------------------------------
00010  */
00011 #ifndef OpenSOAP_XMLElm_H
00012 #define OpenSOAP_XMLElm_H
00013 
00014 #include <OpenSOAP/XMLAttr.h>
00015 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif /* __cplusplus */
00025 
00034     int
00035     OPENSOAP_API
00036     OpenSOAPXMLElmCreate(/* [out] */ OpenSOAPXMLElmPtr *elm);
00037 
00050     int
00051     OPENSOAP_API
00052     OpenSOAPXMLElmSetNamespaceMB(/* [out] */ OpenSOAPXMLElmPtr elm,
00053                                  /* [in]  */ const char *ns_uri,
00054                                  /* [in]  */ const char *ns_prefix);
00055 
00068     int
00069     OPENSOAP_API
00070     OpenSOAPXMLElmSetNamespaceWC(/* [out] */ OpenSOAPXMLElmPtr elm,
00071                                  /* [in]  */ const wchar_t *ns_uri,
00072                                  /* [in]  */ const wchar_t *ns_prefix);
00073 
00088     int
00089     OPENSOAP_API
00090     OpenSOAPXMLElmSearchNamespaceMB(/* [in]  */ OpenSOAPXMLElmPtr elm,
00091                                     /* [in]  */ const char *ns_uri,
00092                                     /* [in]  */ const char *ns_prefix,
00093                                     /* [out] */ OpenSOAPXMLNamespacePtr *ns);
00094     
00109     int
00110     OPENSOAP_API
00111     OpenSOAPXMLElmSearchNamespaceWC(/* [in]  */ OpenSOAPXMLElmPtr elm,
00112                                     /* [in]  */ const wchar_t *ns_uri,
00113                                     /* [in]  */ const wchar_t *ns_prefix,
00114                                     /* [out] */ OpenSOAPXMLNamespacePtr *ns);
00115 
00126     int
00127     OPENSOAP_API
00128     OpenSOAPXMLElmGetNamespace(/* [in]  */ OpenSOAPXMLElmPtr elm,
00129                                /* [out] */ OpenSOAPXMLNamespacePtr *ns);
00130 
00147     int
00148     OPENSOAP_API
00149     OpenSOAPXMLElmSearchNamespaceString(/* [in]  */ OpenSOAPXMLElmPtr elm,
00150                                         /* [in]  */ OpenSOAPStringPtr nsUri,
00151                                         /* [in]  */ OpenSOAPStringPtr nsPrefix,
00152                                         /* [out] */ OpenSOAPXMLNamespacePtr *ns,
00153                                         /* [out] */ OpenSOAPXMLElmPtr *defElm);
00154 
00169     int
00170     OPENSOAP_API
00171     OpenSOAPXMLElmDefineNamespaceMB(/* [out] */ OpenSOAPXMLElmPtr elm,
00172                                     /* [in]  */ const char *ns_uri,
00173                                     /* [in]  */ const char *ns_prefix,
00174                                     /* [out] */ OpenSOAPXMLNamespacePtr *ns);
00175 
00190     int
00191     OPENSOAP_API
00192     OpenSOAPXMLElmDefineNamespaceWC(/* [out] */ OpenSOAPXMLElmPtr elm,
00193                                     /* [in]  */ const wchar_t *ns_uri,
00194                                     /* [in]  */ const wchar_t *ns_prefix,
00195                                     /* [out] */ OpenSOAPXMLNamespacePtr *ns);
00196 
00213     int
00214     OPENSOAP_API
00215     OpenSOAPXMLElmAddAttributeMB(/* [out] */ OpenSOAPXMLElmPtr elm,
00216                                  /* [in]  */ const char *attr_name,
00217                                  /* [in]  */ const char *attr_type,
00218                                  /* [in]  */ void *attr_value,
00219                                  /* [out] */ OpenSOAPXMLAttrPtr *attr);
00220 
00237     int
00238     OPENSOAP_API
00239     OpenSOAPXMLElmAddAttributeWC(/* [out] */ OpenSOAPXMLElmPtr elm,
00240                                  /* [in]  */ const wchar_t *attr_name,
00241                                  /* [in]  */ const wchar_t *attr_type,
00242                                  /* [in]  */ void *attr_value,
00243                                  /* [out] */ OpenSOAPXMLAttrPtr *attr);
00244 
00257     int
00258     OPENSOAP_API
00259     OpenSOAPXMLElmGetAttributeMB(/* [in]  */ OpenSOAPXMLElmPtr elm,
00260                                  /* [in]  */ const char *attr_name,
00261                                  /* [out] */ OpenSOAPXMLAttrPtr *attr);
00262 
00275     int
00276     OPENSOAP_API
00277     OpenSOAPXMLElmGetAttributeWC(/* [in]  */ OpenSOAPXMLElmPtr elm,
00278                                  /* [in]  */ const wchar_t *attr_name,
00279                                  /* [out] */ OpenSOAPXMLAttrPtr *attr);
00280 
00291     int
00292     OPENSOAP_API
00293     OpenSOAPXMLElmGetNextChild(/* [in]  */ OpenSOAPXMLElmPtr elm,
00294                                /* [in, out] */ OpenSOAPXMLElmPtr *cld_elm);
00295 
00308     int
00309     OPENSOAP_API
00310     OpenSOAPXMLElmAddChildString(/* [in]  */ OpenSOAPXMLElmPtr elm,
00311                                  /* [in]  */ OpenSOAPStringPtr childName,
00312                                  /* [out] */ OpenSOAPXMLElmPtr *childElm);
00313 
00326     int
00327     OPENSOAP_API
00328     OpenSOAPXMLElmAddChildMB(/* [in]  */ OpenSOAPXMLElmPtr elm,
00329                              /* [in]  */ const char *cld_name,
00330                              /* [out] */ OpenSOAPXMLElmPtr *cld_elm);
00331 
00344     int
00345     OPENSOAP_API
00346     OpenSOAPXMLElmAddChildWC(/* [in]  */ OpenSOAPXMLElmPtr elm,
00347                              /* [in]  */ const wchar_t *cld_name,
00348                              /* [out] */ OpenSOAPXMLElmPtr *cld_elm);
00349 
00364     int
00365     OPENSOAP_API
00366     OpenSOAPXMLElmAddChildXMLDocument(/* [in]  */ OpenSOAPXMLElmPtr elm,
00367                                       /* [in]  */ char *elmname,
00368                                       /* [in]  */ OpenSOAPByteArrayPtr document,
00369                                       /* [in]  */ const char *charEnc);
00370 
00383     int
00384     OPENSOAP_API
00385     OpenSOAPXMLElmGetChildString(/* [in]  */ OpenSOAPXMLElmPtr elm,
00386                                  /* [in]  */ OpenSOAPStringPtr childName,
00387                                  /* [out] */ OpenSOAPXMLElmPtr *childElm);
00388         
00401     int
00402     OPENSOAP_API
00403     OpenSOAPXMLElmGetChildMB(/* [in]  */ OpenSOAPXMLElmPtr elm,
00404                              /* [in]  */ const char *cld_name,
00405                              /* [out] */ OpenSOAPXMLElmPtr *cld_elm);
00406 
00419     int
00420     OPENSOAP_API
00421     OpenSOAPXMLElmGetChildWC(/* [in]  */ OpenSOAPXMLElmPtr elm,
00422                              /* [in]  */ const wchar_t *cld_name,
00423                              /* [out] */ OpenSOAPXMLElmPtr *cld_elm);
00424 
00437     int
00438     OPENSOAP_API
00439     OpenSOAPXMLElmGetValueMB(/* [in]  */ OpenSOAPXMLElmPtr elm,
00440                              /* [in]  */ const char *type_name,
00441                              /* [out] */ void *value);
00442 
00455     int
00456     OPENSOAP_API
00457     OpenSOAPXMLElmGetValueWC(/* [in]  */ OpenSOAPXMLElmPtr elm,
00458                              /* [in]  */ const wchar_t *type_name,
00459                              /* [out] */ void *value);
00460 
00473     int
00474     OPENSOAP_API
00475     OpenSOAPXMLElmSetValueMB(/* [out] */ OpenSOAPXMLElmPtr elm,
00476                              /* [in]  */ const char *type_name,
00477                              /* [in]  */ void *value);
00478 
00491     int
00492     OPENSOAP_API
00493     OpenSOAPXMLElmSetValueWC(/* [out] */ OpenSOAPXMLElmPtr elm,
00494                              /* [in]  */ const wchar_t *type_name,
00495                              /* [in]  */ void *value);
00496 
00509     int
00510     OPENSOAP_API
00511     OpenSOAPXMLElmGetCharEncodingString(/* [in]  */ OpenSOAPXMLElmPtr elm,
00512                                         /* [in]  */ const char *chEnc,
00513                                         /* [out] */ OpenSOAPByteArrayPtr bAry);
00514 
00525     int
00526     OPENSOAP_API
00527     OpenSOAPXMLElmGetNameString(/* [in]  */ OpenSOAPXMLElmPtr elm,
00528                                 /* [out] */ OpenSOAPStringPtr *name);
00529 
00540     int
00541     OPENSOAP_API
00542     OpenSOAPXMLElmGetNextAttr(/* [in] */ OpenSOAPXMLElmPtr elm,
00543                               /* [in, out] */ OpenSOAPXMLAttrPtr *attr_elm);
00544 
00559     int
00560     OPENSOAP_API
00561     OpenSOAPXMLElmGetChildValueMB(/* [in]  */ OpenSOAPXMLElmPtr elm,
00562                                   /* [in]  */ const char *childName,
00563                                   /* [in]  */ const char *typeName,
00564                                   /* [out] */ void *value);
00565 
00580     int
00581     OPENSOAP_API
00582     OpenSOAPXMLElmGetChildValueWC(/* [in]  */ OpenSOAPXMLElmPtr elm,
00583                                   /* [in]  */ const wchar_t *childName,
00584                                   /* [in]  */ const wchar_t *typeName,
00585                                   /* [out] */ void *value);
00586 
00601     int
00602     OPENSOAP_API
00603     OpenSOAPXMLElmSetChildValueMB(/* [out]  */ OpenSOAPXMLElmPtr elm,
00604                                   /* [in]  */ const char *childName,
00605                                   /* [in]  */ const char *typeName,
00606                                   /* [in] */ void *value);
00607 
00622     int
00623     OPENSOAP_API
00624     OpenSOAPXMLElmSetChildValueWC(/* [in]  */ OpenSOAPXMLElmPtr elm,
00625                                   /* [in]  */ const wchar_t *childName,
00626                                   /* [in]  */ const wchar_t *typeName,
00627                                   /* [out] */ void *value);
00628 
00641     int
00642     OPENSOAP_API
00643     OpenSOAPXMLElmSetChildValueXMLDocument(/* [in]  */ OpenSOAPXMLElmPtr elm,
00644                                            /* [in]  */ OpenSOAPByteArrayPtr document,
00645                                            /* [in]  */ const char *charEnc);
00646 
00659     int
00660     OPENSOAP_API
00661     OpenSOAPXMLElmSetValueAsString(/* [out] */ OpenSOAPXMLElmPtr elm,
00662                                    /* [in]  */ OpenSOAPStringPtr value,
00663                                    /* [in]  */ int isDup);
00664 
00675     int
00676     OPENSOAP_API
00677     OpenSOAPXMLElmSetValueAsStringMB(/* [out] */ OpenSOAPXMLElmPtr elm,
00678                                      /* [in]  */ const char *value);
00679         
00690     int
00691     OPENSOAP_API
00692     OpenSOAPXMLElmSetValueAsStringWC(/* [out] */ OpenSOAPXMLElmPtr elm,
00693                                      /* [in]  */ const wchar_t *value);
00694 
00707     int
00708     OPENSOAP_API
00709     OpenSOAPXMLElmSetChildValueAsStringMB(/* [out] */ OpenSOAPXMLElmPtr elm,
00710                                           /* [in]  */ const char *childName,
00711                                           /* [in]  */ const char *value);
00712 
00725     int
00726     OPENSOAP_API
00727     OpenSOAPXMLElmSetChildValueAsStringWC(/* [out] */ OpenSOAPXMLElmPtr elm,
00728                                           /* [in]  */ const wchar_t *childName,
00729                                           /* [in]  */ const wchar_t *value);
00730 
00745     int
00746     OPENSOAP_API
00747     OpenSOAPXMLElmSetChildValueAsString(/* [out] */ OpenSOAPXMLElmPtr elm,
00748                                         /* [in]  */ OpenSOAPStringPtr childName,
00749                                         /* [in]  */ int isValueDup,
00750                                         /* [in, out] */ OpenSOAPStringPtr value);
00751         
00766     int
00767     OPENSOAP_API
00768     OpenSOAPXMLElmRemoveChildString(/* [in]  */ OpenSOAPXMLElmPtr elm,
00769                                     /* [in]  */ OpenSOAPStringPtr childName,
00770                                     /* [in]  */ int isValueRelease,
00771                                     /* [out] */ OpenSOAPStringPtr *childValue); 
00772 
00787     int
00788     OPENSOAP_API
00789     OpenSOAPXMLElmGetAttributeValueMB(/* [in]  */ OpenSOAPXMLElmPtr elm,
00790                                       /* [in]  */ const char *attrName,
00791                                       /* [in]  */ const char *typeName,
00792                                       /* [out] */ void *value);
00793 
00808     int
00809     OPENSOAP_API
00810     OpenSOAPXMLElmGetAttributeValueWC(/* [in]  */ OpenSOAPXMLElmPtr elm,
00811                                       /* [in]  */ const wchar_t *attrName,
00812                                       /* [in]  */ const wchar_t *typeName,
00813                                       /* [out] */ void *value);
00814 
00829     int
00830     OPENSOAP_API
00831     OpenSOAPXMLElmSetAttributeValueMB(/* [in]  */ OpenSOAPXMLElmPtr elm,
00832                                       /* [in]  */ const char *attrName,
00833                                       /* [in]  */ const char *typeName,
00834                                       /* [out] */ void *value);
00835 
00850     int
00851     OPENSOAP_API
00852     OpenSOAPXMLElmSetAttributeValueWC(/* [in]  */ OpenSOAPXMLElmPtr elm,
00853                                       /* [in]  */ const wchar_t *attrName,
00854                                       /* [in]  */ const wchar_t *typeName,
00855                                       /* [out] */ void *value);
00856         
00857 #ifdef __cplusplus
00858 }
00859 #endif /* __cplusplus */
00860 
00861 #endif /* OpenSOAP_XMLElm_H */

Generated on Mon Oct 18 18:29:44 2004 for OpenSOAP by doxygen 1.3.6