1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
@node Element Functions, Container Functions, Property Functions, Functions
@chapter Element Functions
@itemize @bullet
@item
Function: int rdfGetElementType(RdfElement *element)
@findex rdfGetElementType
Returns the type of the specified element (@pxref{Definitions}).
If the type is unknown, this returns 0. If the element is NULL,
this returns -1.
@itemize @minus
@item
element: The element.
@end itemize
@item
Function: char *rdfGetElementValue(RdfElement *element)
@findex rdfGetElementValue
Returns the value of the specified element.
Note: The returned value must be freed.
@itemize @minus
@item
element: The element.
@end itemize
@item
Function: const char *rdfGetElementPropertyName(RdfElement *element)
@findex rdfGetElementPropertyName
Returns the name of the specified element.
@itemize @minus
@item
element: The element.
@end itemize
@item
Function: RdfNamespace *rdfGetElementNamespace(RdfElement *element)
@findex rdfGetElementNamespace
Returns the namespace of the specified element.
@itemize @minus
@item
element: The element.
@end itemize
@item
Function: void rdfSetElementValue(RdfElement *element, const char *value)
@findex rdfSetElementValue
Sets the value of the specified namespace.
@itemize @minus
@item
element: The element.
@item
value: The new value for the element.
@end itemize
@item
Function: void rdfSetElementResource(RdfElement *element, const char *uri)
@findex rdfSetElementResource
Sets an element's resource.
@itemize @minus
@item
element: The element.
@item
uri: The URI of the resource.
@end itemize
@item
Function: char *rdfGetElementResource(RdfElement *element)
@findex rdfGetElementResource
Returns an element's resource.
Note: The returned resource must be freed!
@itemize @minus
@item
element: The element.
@end itemize
@item
Function: RdfSchema *rdfGetElementSchema(RdfElement *element)
@findex rdfGetElementSchema
Returns an element's parent schema.
@itemize @minus
@item
element: The element.
@end itemize
@end itemize
|