TiXI 3.3.2
Loading...
Searching...
No Matches
tixi.h
Go to the documentation of this file.
1/*
2* Copyright (C) 2015 German Aerospace Center (DLR/SC)
3*
4* Created: 2010-08-13 Markus Litz <Markus.Litz@dlr.de>
5*
6* Licensed under the Apache License, Version 2.0 (the "License");
7* you may not use this file except in compliance with the License.
8* You may obtain a copy of the License at
9*
10* http://www.apache.org/licenses/LICENSE-2.0
11*
12* Unless required by applicable law or agreed to in writing, software
13* distributed under the License is distributed on an "AS IS" BASIS,
14* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15* See the License for the specific language governing permissions and
16* limitations under the License.
17*/
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#if defined(WIN32)
23#if defined (tixi3_EXPORTS)
24#define DLL_EXPORT __declspec (dllexport)
25#else
26#define DLL_EXPORT
27#endif
28#else
29#define DLL_EXPORT
30#endif
31
32// DEPRECATION MACRO
33#if defined(_MSC_VER)
34#define DEPRECATED __declspec(deprecated)
35#elif defined(__GNUC__)
36#define DEPRECATED __attribute__((deprecated))
37#else
38#pragma message("WARNING: You need to implement DEPRECATED for this compiler")
39#define DEPRECATED
40#endif
41
42/* \mainpage TIXI Manual
43<b>Contents:</b>
44 - \link Glossary Glossary\endlink
45 - \link XPathExamples XPath Examples\endlink
46 - \link UsageExamples Usage\endlink
47 - <a HREF="modules.html" class="el">Function Documentation</a>
48 */
49/*
50 @file tixi.h
51 @author Hans-Peter Kersken <Hans-Peter.Kersken@dlr.de>
52 Markus Litz <Markus.Litz@dlr.de>,
53 Markus Kunde <Markus.Kunde@dlr.de>,
54 Arne Bachmann <Arne.Bachmann@dlr.de>,
55 @date Tue Feb 02 14:28:05 2009
56
57 @brief Definition of <b>TIXI</b> the <b>TI</b>VA - <b>XML</b> - <b>I</b>nterface
58*/
220
221
239
240#ifndef TIXI_H
241#define TIXI_H
242
247
248
252
347
349
366
367
369
370
387
388
389typedef enum OpenMode OpenMode;
402
403
405
406
421
422
424
434typedef void (*TixiPrintMsgFnc) (MessageType type, const char *msg);
435
446
447
448
476
477DLL_EXPORT ReturnCode tixiOpenDocument (const char *xmlFilename, TixiDocumentHandle * handle);
478
479
480
531
532
556
575DLL_EXPORT ReturnCode tixiCreateDocument (const char *rootElementName, TixiDocumentHandle * handle);
576
592
606
633
634
660
662
663
690
691
711
713
714
732
737
738
762
763
783DLL_EXPORT ReturnCode tixiImportFromString (const char *xmlImportString, TixiDocumentHandle * handle);
784
792
793
820
849
878
879
904DLL_EXPORT ReturnCode tixiDTDValidate (const TixiDocumentHandle handle, const char *DTDFilename);
906
907
908
915
946 const char *elementPath, char **text);
947
948
977DLL_EXPORT ReturnCode tixiGetIntegerElement (const TixiDocumentHandle handle, const char *elementPath, int *number);
978
1006DLL_EXPORT ReturnCode tixiGetDoubleElement (const TixiDocumentHandle handle, const char *elementPath, double *number);
1007
1008
1039DLL_EXPORT ReturnCode tixiGetBooleanElement (const TixiDocumentHandle handle, const char *elementPath, int *boolean);
1040
1041
1069DLL_EXPORT ReturnCode tixiUpdateTextElement (const TixiDocumentHandle handle, const char *elementPath, const char *text);
1070
1071
1102DLL_EXPORT ReturnCode tixiUpdateDoubleElement (const TixiDocumentHandle handle, const char *elementPath, double number, const char *format);
1103
1134DLL_EXPORT ReturnCode tixiUpdateIntegerElement (const TixiDocumentHandle handle, const char *elementPath, int number, const char *format);
1135
1163DLL_EXPORT ReturnCode tixiUpdateBooleanElement (const TixiDocumentHandle handle, const char *elementPath, int boolean);
1164
1165
1198DLL_EXPORT ReturnCode tixiAddTextElement (const TixiDocumentHandle handle, const char *parentPath, const char *elementName, const char *text);
1199
1200
1241DLL_EXPORT ReturnCode tixiAddTextElementNS (const TixiDocumentHandle handle, const char *parentPath,
1242 const char *qualifiedName, const char *namespaceURI, const char *text);
1243
1244
1245
1281
1282DLL_EXPORT ReturnCode tixiAddTextElementAtIndex (const TixiDocumentHandle handle, const char *parentPath, const char *elementName, const char *text, int index);
1283
1328 const char* qualifiedName, const char* namespaceURI, const char *text, int index);
1329
1362DLL_EXPORT ReturnCode tixiAddBooleanElement (const TixiDocumentHandle handle, const char *parentPath, const char *elementName, int boolean);
1363
1364
1406 const char *qualifiedName, const char* namespaceURI, int boolean);
1407
1408
1441 const char *parentPath, const char *elementName,
1442 double number, const char *format);
1443
1444
1485 const char *parentPath, const char *qualifiedName, const char* namespaceURI,
1486 double number, const char *format);
1487
1520 const char *parentPath, const char *elementName,
1521 int number, const char *format);
1522
1523
1564 const char *parentPath,
1565 const char *qualifiedName, const char *namespaceURI,
1566 int number, const char *format);
1567
1568
1613DLL_EXPORT ReturnCode tixiAddFloatVector (const TixiDocumentHandle handle, const char *parentPath, const char *elementName, const double *vector, const int numElements, const char* format);
1614
1615
1652DLL_EXPORT ReturnCode tixiUpdateFloatVector (const TixiDocumentHandle handle, const char *path, const double *vector, const int numElements, const char* format);
1653
1654
1683DLL_EXPORT ReturnCode tixiCreateElement (const TixiDocumentHandle handle, const char *parentPath, const char *elementName);
1684
1685
1722DLL_EXPORT ReturnCode tixiCreateElementNS (const TixiDocumentHandle handle, const char *parentPath,
1723 const char *qualifiedName, const char* namespaceURI);
1724
1725
1757DLL_EXPORT ReturnCode tixiCreateElementAtIndex (const TixiDocumentHandle handle, const char *parentPath, const char *elementName, int index);
1758
1759
1800 const char *qualifiedName, int index, const char* namespaceURI);
1801
1802
1825 const char* parentPath,
1826 const char* oldName,
1827 const char* newName);
1828
1852DLL_EXPORT ReturnCode tixiRemoveElement (const TixiDocumentHandle handle, const char *elementPath);
1853
1854
1878 const char *nodePath, char **nodeType);
1879
1880
1906 const char *elementPath, const char *childName,
1907 int *count);
1908
1934 const char *parentElementPath, int index, char **name);
1935
1956DLL_EXPORT ReturnCode tixiGetNumberOfChilds(const TixiDocumentHandle handle, const char *elementPath, int* nChilds);
1957
1976DLL_EXPORT ReturnCode tixiSwapElements(const TixiDocumentHandle handle, const char* element1Path, const char* element2Path);
1977
1978
2006DLL_EXPORT ReturnCode tixiExportElementAsString (const TixiDocumentHandle handle, const char* elementPath, char **text);
2007
2008
2038DLL_EXPORT ReturnCode tixiImportElementFromString (const TixiDocumentHandle handle, const char *parentPath, const char *xmlImportString);
2039
2040
2072DLL_EXPORT ReturnCode tixiImportElementFromStringAtIndex (const TixiDocumentHandle handle, const char *parentPath, int index, const char *xmlImportString);
2073
2074
2076
2085
2120 const char *elementPath, const char *attributeName,
2121 char **text);
2122
2157 const char *elementPath, const char *attributeName,
2158 int *number);
2159
2194 const char *elementPath, const char *attributeName,
2195 int *boolean);
2196
2231 const char *elementPath, const char *attributeName,
2232 double *number);
2233
2234
2235
2236
2273 const char *elementPath, const char *attributeName,
2274 const char *attributeValue);
2275
2276
2318 const char *elementPath, const char *attributeName,
2319 double number, const char *format);
2320
2321
2362 const char *elementPath, const char *attributeName,
2363 int number, const char *format);
2364
2394 const char *elementPath, const char *attributeName);
2395
2396
2417DLL_EXPORT ReturnCode tixiGetNumberOfAttributes(const TixiDocumentHandle handle, const char *elementPath, int* nAttributes);
2418
2419
2441DLL_EXPORT ReturnCode tixiGetAttributeName(const TixiDocumentHandle handle, const char *elementPath, int attrIndex, char** attrName);
2442
2444
2508
2509
2532DLL_EXPORT ReturnCode tixiRegisterNamespace(const TixiDocumentHandle handle, const char* namespaceURI, const char* prefix);
2533
2534
2556
2557
2579 const char* namespaceURI, const char* prefix);
2580
2581
2605DLL_EXPORT ReturnCode tixiDeclareNamespace(const TixiDocumentHandle handle, const char* elementPath,
2606 const char* namespaceURI, const char* prefix);
2607
2615
2616
2648DLL_EXPORT ReturnCode tixiAddExternalLink (const TixiDocumentHandle handle, const char *parentPath,
2649 const char *pathOrUrl, const char *filename, AddLinkMode mode);
2650
2651
2750
2774DLL_EXPORT ReturnCode tixiAddHeader (const TixiDocumentHandle handle, const char *toolName,
2775 const char *version, const char *authorName);
2776
2777
2778
2803DLL_EXPORT ReturnCode tixiAddCpacsHeader (const TixiDocumentHandle handle, const char *name, const char *creator,
2804 const char *version, const char *description, const char * cpacsVersion);
2805
2806
2821DLL_EXPORT ReturnCode tixiCheckElement (const TixiDocumentHandle handle, const char *elementPath);
2822
2823
2838
2860
2883
2891
2892
2907
2909
2916
2957 const char *parentPath,
2958 const char *listName, const char *childName,
2959 const char *childAttributeName,
2960 const double *values, const char *format,
2961 const char **attributes, int nValues);
2962
2985 const char *vectorPath, int *nElements);
2986
2987
3015DLL_EXPORT ReturnCode tixiGetFloatVector (const TixiDocumentHandle handle, const char *vectorPath,
3016 double **vectorArray, const int eNumber);
3017
3018
3068 const char *arrayPath, int *dimensions);
3069
3070
3101 int *sizes, int *linearArraySize);
3102
3103
3133 const char *arrayPath, char **dimensionNames);
3134
3135
3165 const int dimension, double *dimensionValues);
3166
3167
3196 const char *arrayPath,
3197 int *parameters);
3198
3199
3228 const char *arrayPath, char **parameterNames);
3229
3230
3266 const char *elementName, int arraySize, double **values);
3267
3268
3287DEPRECATED DLL_EXPORT double tixiGetArrayValue(const double *array,
3288 const int *dimSize,
3289 const int *dimPos,
3290 const int dims);
3291
3292
3321 const char *elementName, int *elements);
3322
3323
3352 const char *elementType, char **elementNames);
3353
3354
3390DLL_EXPORT ReturnCode tixiAddPoint (const TixiDocumentHandle handle, const char *pointParentPath,
3391 double x, double y, double z, const char *format);
3392
3434 const char *pointParentPath,
3435 double *x, double *y, double *z);
3436
3437
3438
3461DLL_EXPORT ReturnCode tixiCheckAttribute(TixiDocumentHandle handle, const char *elementPath, const char *attributeName);
3462
3463
3470
3486DLL_EXPORT ReturnCode tixiXSLTransformationToString(TixiDocumentHandle handle, const char *xslFilename, char **resultText);
3487
3503DLL_EXPORT ReturnCode tixiXSLTransformationToFile(TixiDocumentHandle handle, const char *xslFilename, const char *resultFilename);
3504
3505
3513
3529DLL_EXPORT ReturnCode tixiXPathEvaluateNodeNumber(TixiDocumentHandle handle, const char *xPathExpression, int *number);
3530
3544DLL_EXPORT ReturnCode tixiXPathExpressionGetXPath(TixiDocumentHandle handle, const char *xPathExpression, int index, char** xPath);
3545
3569DLL_EXPORT ReturnCode tixiXPathExpressionGetTextByIndex(TixiDocumentHandle handle, const char *xPathExpression, int elementNumber, char **text);
3570
3571
3579
3595
3596
3613
3634DLL_EXPORT ReturnCode tixiUIDGetXPath(TixiDocumentHandle handle, const char *uID, char **xPath);
3635
3636
3654
3655
3678DLL_EXPORT ReturnCode tixiUIDSetToXPath(TixiDocumentHandle handle, const char *xPath, const char *uID);
3679
3680
3682
3683
3684#endif /* TIXI_H */
3685
3686
3687#ifdef __cplusplus
3688}
3689#endif
AddLinkMode
Definition tixi.h:398
OpenMode
Definition tixi.h:383
ReturnCode
Definition tixi.h:259
MessageType
Definition tixi.h:416
StorageMode
Definition tixi.h:362
@ ADDLINK_CREATE
Definition tixi.h:399
@ ADDLINK_CREATE_AND_OPEN
Definition tixi.h:400
@ OPENMODE_RECURSIVE
Definition tixi.h:385
@ OPENMODE_PLAIN
Definition tixi.h:384
@ INVALID_XPATH
Definition tixi.h:274
@ DEALLOCATION_FAILED
Definition tixi.h:311
@ INDEX_OUT_OF_RANGE
Definition tixi.h:278
@ INVALID_XML_NAME
Definition tixi.h:264
@ MATRIX_DIMENSION_ERROR
Definition tixi.h:328
@ EROROR_CREATE_ROOT_NODE
Definition tixi.h:308
@ CLOSE_FAILED
Definition tixi.h:294
@ NO_POINT_FOUND
Definition tixi.h:281
@ UID_LINK_BROKEN
Definition tixi.h:340
@ ELEMENT_NOT_FOUND
Definition tixi.h:276
@ INVALID_NAMESPACE_URI
Definition tixi.h:342
@ UID_NOT_UNIQUE
Definition tixi.h:336
@ NO_ATTRIBUTE_NAME
Definition tixi.h:316
@ OPEN_SCHEMA_FAILED
Definition tixi.h:290
@ OPEN_DTD_FAILED
Definition tixi.h:292
@ OPEN_FAILED
Definition tixi.h:288
@ STRING_TRUNCATED
Definition tixi.h:318
@ NOT_SCHEMA_COMPLIANT
Definition tixi.h:268
@ NOT_DTD_COMPLIANT
Definition tixi.h:270
@ NON_MATCHING_SIZE
Definition tixi.h:324
@ INVALID_NAMESPACE_PREFIX
Definition tixi.h:344
@ NO_NUMBER
Definition tixi.h:314
@ NOT_AN_ELEMENT
Definition tixi.h:283
@ NOT_WELL_FORMED
Definition tixi.h:266
@ UID_DONT_EXISTS
Definition tixi.h:338
@ ELEMENT_PATH_NOT_UNIQUE
Definition tixi.h:298
@ NON_MATCHING_NAME
Definition tixi.h:321
@ SUCCESS
Definition tixi.h:260
@ COORDINATE_NOT_FOUND
Definition tixi.h:331
@ INVALID_HANDLE
Definition tixi.h:272
@ UNKNOWN_STORAGE_MODE
Definition tixi.h:333
@ NO_CHILDREN
Definition tixi.h:303
@ ALREADY_SAVED
Definition tixi.h:296
@ NO_ELEMENT_NAME
Definition tixi.h:301
@ FAILED
Definition tixi.h:262
@ CHILD_NOT_FOUND
Definition tixi.h:305
@ ATTRIBUTE_NOT_FOUND
Definition tixi.h:286
@ MESSAGETYPE_STATUS
Definition tixi.h:419
@ MESSAGETYPE_WARNING
Definition tixi.h:418
@ MESSAGETYPE_ERROR
Definition tixi.h:417
@ COLUMN_WISE
Definition tixi.h:364
@ ROW_WISE
Definition tixi.h:363
DLL_EXPORT ReturnCode tixiDTDValidate(const TixiDocumentHandle handle, const char *DTDFilename)
Validate XML-document against a DTD.
DLL_EXPORT ReturnCode tixiUpdateDoubleElement(const TixiDocumentHandle handle, const char *elementPath, double number, const char *format)
Updates the double content of an element.
DLL_EXPORT ReturnCode tixiGetIntegerAttribute(const TixiDocumentHandle handle, const char *elementPath, const char *attributeName, int *number)
Retrieves value of an element's attribute as an integer.
DLL_EXPORT ReturnCode tixiAddTextElement(const TixiDocumentHandle handle, const char *parentPath, const char *elementName, const char *text)
Creates an element holding text.
DLL_EXPORT ReturnCode tixiAddTextElementAtIndex(const TixiDocumentHandle handle, const char *parentPath, const char *elementName, const char *text, int index)
Creates an element holding text at a given index.
DLL_EXPORT ReturnCode tixiUpdateBooleanElement(const TixiDocumentHandle handle, const char *elementPath, int boolean)
Updates the boolean content of an element.
DEPRECATED DLL_EXPORT ReturnCode tixiGetArrayParameterNames(const TixiDocumentHandle handle, const char *arrayPath, char **parameterNames)
Retrieves names of all parameters.
DLL_EXPORT ReturnCode tixiCloseAllDocuments()
Close all open documents.
#define DLL_EXPORT
Definition tixi.h:29
DLL_EXPORT ReturnCode tixiGetTextElement(const TixiDocumentHandle handle, const char *elementPath, char **text)
Retrieve text content of an element.
DEPRECATED DLL_EXPORT ReturnCode tixiGetArrayDimensions(const TixiDocumentHandle handle, const char *arrayPath, int *dimensions)
Retrieves the number of dimensions of an Array.
DLL_EXPORT ReturnCode tixiSaveCompleteDocument(TixiDocumentHandle handle, const char *xmlFilename)
Write XML-document with all external data to disk.
DLL_EXPORT ReturnCode tixiAddTextElementNS(const TixiDocumentHandle handle, const char *parentPath, const char *qualifiedName, const char *namespaceURI, const char *text)
Creates an element holding text within the given namespace.
DLL_EXPORT ReturnCode tixiUsePrettyPrint(TixiDocumentHandle handle, int usePrettyPrint)
Sets Pretty print on or off.
DLL_EXPORT ReturnCode tixiAddHeader(const TixiDocumentHandle handle, const char *toolName, const char *version, const char *authorName)
Add header to XML-file.
DLL_EXPORT ReturnCode tixiGetChildNodeName(const TixiDocumentHandle handle, const char *parentElementPath, int index, char **name)
Returns the name of a child node beneath a given path.
DLL_EXPORT ReturnCode tixiCreateElementNS(const TixiDocumentHandle handle, const char *parentPath, const char *qualifiedName, const char *namespaceURI)
Creates an empty element in the specified namespace.
DEPRECATED DLL_EXPORT ReturnCode tixiGetArrayDimensionSizes(const TixiDocumentHandle handle, const char *arrayPath, int *sizes, int *linearArraySize)
Retrieves the sizes of all dimensions of the array definition, and the overall array size (product of...
DLL_EXPORT ReturnCode tixiGetNamedChildrenCount(const TixiDocumentHandle handle, const char *elementPath, const char *childName, int *count)
Returns the number of children elements with the same name.
DLL_EXPORT ReturnCode tixiGetDoubleElement(const TixiDocumentHandle handle, const char *elementPath, double *number)
Retrieve floating point content of an element.
DEPRECATED DLL_EXPORT ReturnCode tixiGetArrayDimensionValues(const TixiDocumentHandle handle, const char *arrayPath, const int dimension, double *dimensionValues)
Retrieves the selected dimension's values (e.g. separate allowed angles etc.).
DLL_EXPORT ReturnCode tixiSchemaValidateWithDefaultsFromFile(const TixiDocumentHandle handle, const char *xsdFilename)
Validate XML-document against an XML-schema and insert missing default elements and attributes.
DLL_EXPORT ReturnCode tixiCreateElement(const TixiDocumentHandle handle, const char *parentPath, const char *elementName)
Creates an empty element.
DLL_EXPORT ReturnCode tixiGetIntegerElement(const TixiDocumentHandle handle, const char *elementPath, int *number)
Retrieve integer content of an element.
DLL_EXPORT ReturnCode tixiSetCacheEnabled(TixiDocumentHandle handle, int enabled)
Enables the internal xPath cache.
DLL_EXPORT ReturnCode tixiCreateElementNSAtIndex(const TixiDocumentHandle handle, const char *parentPath, const char *qualifiedName, int index, const char *namespaceURI)
Creates an empty element at a given index in the specified namespace.
DLL_EXPORT ReturnCode tixiAddDoubleAttribute(const TixiDocumentHandle handle, const char *elementPath, const char *attributeName, double number, const char *format)
Adds an attribute with a floating point number value to an element.
DLL_EXPORT ReturnCode tixiCreateDocument(const char *rootElementName, TixiDocumentHandle *handle)
Create an XML-document.
DLL_EXPORT ReturnCode tixiGetDoubleAttribute(const TixiDocumentHandle handle, const char *elementPath, const char *attributeName, double *number)
Retrieves value of an element's attribute as a floating point number.
DLL_EXPORT ReturnCode tixiXPathExpressionGetTextByIndex(TixiDocumentHandle handle, const char *xPathExpression, int elementNumber, char **text)
Evaluates a XPath expression and returns the text content of the resultnode matching this xpath expre...
DLL_EXPORT ReturnCode tixiRenameElement(const TixiDocumentHandle handle, const char *parentPath, const char *oldName, const char *newName)
Renames an element.
DLL_EXPORT ReturnCode tixiGetNumberOfAttributes(const TixiDocumentHandle handle, const char *elementPath, int *nAttributes)
Returns the number of attributes of a given node.
DLL_EXPORT ReturnCode tixiGetBooleanElement(const TixiDocumentHandle handle, const char *elementPath, int *boolean)
Retrieve boolean content of an element.
DEPRECATED DLL_EXPORT ReturnCode tixiGetArrayParameters(const TixiDocumentHandle handle, const char *arrayPath, int *parameters)
Retrieves the number of parameters of an array.
DLL_EXPORT ReturnCode tixiAddIntegerElement(const TixiDocumentHandle handle, const char *parentPath, const char *elementName, int number, const char *format)
Creates an element which holds an integer.
DLL_EXPORT ReturnCode tixiGetBooleanAttribute(const TixiDocumentHandle handle, const char *elementPath, const char *attributeName, int *boolean)
Retrieves value of an element's attribute as an boolean.
DLL_EXPORT TixiPrintMsgFnc tixiGetPrintMsgFunc()
Returns the currently registered message handler function.
DLL_EXPORT ReturnCode tixiUIDCheckLinks(TixiDocumentHandle handle)
Performs a check over all nodes with the uID "isLink" and check if the corresponding uid exists in th...
DLL_EXPORT ReturnCode tixiDeclareNamespace(const TixiDocumentHandle handle, const char *elementPath, const char *namespaceURI, const char *prefix)
This function adds a namespace declaration inside the tag of specified element.
DEPRECATED DLL_EXPORT ReturnCode tixiGetArrayElementCount(const TixiDocumentHandle handle, const char *arrayPath, const char *elementName, int *elements)
Helper function.
DLL_EXPORT ReturnCode tixiCheckDocumentHandle(const TixiDocumentHandle handle)
Checks for validity of a document handle.
DLL_EXPORT ReturnCode tixiGetTextAttribute(const TixiDocumentHandle handle, const char *elementPath, const char *attributeName, char **text)
Retrieves value of an element's attribute as a string.
DLL_EXPORT ReturnCode tixiCleanup()
Closes the xml2 library and frees its allocated variables.
DLL_EXPORT ReturnCode tixiOpenDocument(const char *xmlFilename, TixiDocumentHandle *handle)
Open an XML-file for reading.
DLL_EXPORT ReturnCode tixiImportFromString(const char *xmlImportString, TixiDocumentHandle *handle)
Imports a char-string into a new tixi-document.
DLL_EXPORT ReturnCode tixiAddTextElementNSAtIndex(const TixiDocumentHandle handle, const char *parentPath, const char *qualifiedName, const char *namespaceURI, const char *text, int index)
Creates an element holding text at a given index in the specified namespace.
DLL_EXPORT ReturnCode tixiRemoveExternalLinks(TixiDocumentHandle handle)
Removes all link attributes to external files.
DLL_EXPORT ReturnCode tixiAddIntegerElementNS(const TixiDocumentHandle handle, const char *parentPath, const char *qualifiedName, const char *namespaceURI, int number, const char *format)
Creates an element which holds an integer in the given namespace.
DLL_EXPORT ReturnCode tixiAddIntegerAttribute(const TixiDocumentHandle handle, const char *elementPath, const char *attributeName, int number, const char *format)
Adds an attribute with an integer number value to an element.
DLL_EXPORT ReturnCode tixiAddTextAttribute(const TixiDocumentHandle handle, const char *elementPath, const char *attributeName, const char *attributeValue)
Adds an attribute with a string value to an element.
DLL_EXPORT ReturnCode tixiRegisterNamespacesFromDocument(const TixiDocumentHandle handle)
Registers all prefixed namespaces of the xml document to the parser.
DLL_EXPORT ReturnCode tixiGetAttributeName(const TixiDocumentHandle handle, const char *elementPath, int attrIndex, char **attrName)
Returns the name of an attribute beneath a given path.
DLL_EXPORT ReturnCode tixiSaveAndRemoveDocument(TixiDocumentHandle handle, const char *xmlFilename)
Write XML-document with all external data to disk.
DLL_EXPORT ReturnCode tixiSwapElements(const TixiDocumentHandle handle, const char *element1Path, const char *element2Path)
Swaps to xml elements with each other.
DLL_EXPORT ReturnCode tixiSchemaValidateFromString(const TixiDocumentHandle handle, const char *xsdString)
Validate XML-document against an XML-schema.
DLL_EXPORT ReturnCode tixiCreateElementAtIndex(const TixiDocumentHandle handle, const char *parentPath, const char *elementName, int index)
Creates an empty element at a given index.
DLL_EXPORT ReturnCode tixiOpenDocumentRecursive(const char *xmlFilename, TixiDocumentHandle *handle, OpenMode oMode)
Open an XML-file for reading. It acts like tixiOpenDocument.
DLL_EXPORT ReturnCode tixiGetNodeType(const TixiDocumentHandle handle, const char *nodePath, char **nodeType)
Returns the number of child elements beneath a given path.
DLL_EXPORT ReturnCode tixiImportElementFromString(const TixiDocumentHandle handle, const char *parentPath, const char *xmlImportString)
Imports a char-string as a child element into an existing tixi-document.
DLL_EXPORT ReturnCode tixiImportElementFromStringAtIndex(const TixiDocumentHandle handle, const char *parentPath, int index, const char *xmlImportString)
Imports a char-string as a child element into an existing tixi-document.
DLL_EXPORT ReturnCode tixiGetDocumentPath(TixiDocumentHandle handle, char **documentPath)
Returns the file path to the document.
void(* TixiPrintMsgFnc)(MessageType type, const char *msg)
Definition tixi.h:434
DLL_EXPORT ReturnCode tixiUIDCheckExists(TixiDocumentHandle handle, const char *uID)
Checks if a uID exists.
DLL_EXPORT ReturnCode tixiGetPoint(const TixiDocumentHandle handle, const char *pointParentPath, double *x, double *y, double *z)
Reads a point element but ignores error if an incomplete point is encountered.
int TixiDocumentHandle
Definition tixi.h:246
DLL_EXPORT ReturnCode tixiUpdateTextElement(const TixiDocumentHandle handle, const char *elementPath, const char *text)
Updates the text content of an element.
DLL_EXPORT char * tixiGetVersion()
Returns the version number of this TIXI version.
DLL_EXPORT ReturnCode tixiSetPrintMsgFunc(TixiPrintMsgFnc func)
Reroutes all messages of tixi to the message function func.
DLL_EXPORT ReturnCode tixiAddFloatVector(const TixiDocumentHandle handle, const char *parentPath, const char *elementName, const double *vector, const int numElements, const char *format)
Creates an element holding an vector.
DLL_EXPORT ReturnCode tixiAddBooleanElementNS(const TixiDocumentHandle handle, const char *parentPath, const char *qualifiedName, const char *namespaceURI, int boolean)
Creates an element in the given namesoace and sets the value to "true" or "false".
DLL_EXPORT ReturnCode tixiExportElementAsString(const TixiDocumentHandle handle, const char *elementPath, char **text)
Returns the element as one XML text.
DLL_EXPORT ReturnCode tixiRemoveAttribute(const TixiDocumentHandle handle, const char *elementPath, const char *attributeName)
Removes an attribute.
DLL_EXPORT ReturnCode tixiAddBooleanElement(const TixiDocumentHandle handle, const char *parentPath, const char *elementName, int boolean)
Creates an element and sets the value to "true" or "false".
DLL_EXPORT ReturnCode tixiXSLTransformationToString(TixiDocumentHandle handle, const char *xslFilename, char **resultText)
Performs a XML transformation .
DLL_EXPORT ReturnCode tixiSetElementNamespace(const TixiDocumentHandle handle, const char *elementPath, const char *namespaceURI, const char *prefix)
This function sets the namespace for the specified element.
#define DEPRECATED
Definition tixi.h:39
DLL_EXPORT ReturnCode tixiCloseDocument(TixiDocumentHandle handle)
Close an XML-document.
DLL_EXPORT ReturnCode tixiUIDGetXPath(TixiDocumentHandle handle, const char *uID, char **xPath)
Returns the XPath to given uID.
DEPRECATED DLL_EXPORT ReturnCode tixiGetArrayDimensionNames(const TixiDocumentHandle handle, const char *arrayPath, char **dimensionNames)
Retrieves the names of all dimensions.
DLL_EXPORT ReturnCode tixiXPathExpressionGetXPath(TixiDocumentHandle handle, const char *xPathExpression, int index, char **xPath)
Evaluates a XPath expression and the xPath for the i-th result.
DEPRECATED DLL_EXPORT ReturnCode tixiGetArrayElementNames(const TixiDocumentHandle handle, const char *arrayPath, const char *elementType, char **elementNames)
Helper function.
DLL_EXPORT ReturnCode tixiSchemaValidateFromFile(const TixiDocumentHandle handle, const char *xsdFilename)
Validate XML-document against an XML-schema.
DLL_EXPORT ReturnCode tixiXSLTransformationToFile(TixiDocumentHandle handle, const char *xslFilename, const char *resultFilename)
Performs a XML transformation and saves the result to resultFilename.
DLL_EXPORT ReturnCode tixiRemoveElement(const TixiDocumentHandle handle, const char *elementPath)
Removes an element.
DLL_EXPORT ReturnCode tixiGetFloatVector(const TixiDocumentHandle handle, const char *vectorPath, double **vectorArray, const int eNumber)
Retrieves a vector.
DLL_EXPORT ReturnCode tixiXPathEvaluateNodeNumber(TixiDocumentHandle handle, const char *xPathExpression, int *number)
Evaluates a XPath expression and returns the number of result nodes matching this xpath expression.
DLL_EXPORT ReturnCode tixiGetNumberOfChilds(const TixiDocumentHandle handle, const char *elementPath, int *nChilds)
Returns the number of child elements beneath a given path.
DLL_EXPORT ReturnCode tixiCheckElement(const TixiDocumentHandle handle, const char *elementPath)
Checks if the given element exists.
DLL_EXPORT ReturnCode tixiExportDocumentAsString(const TixiDocumentHandle handle, char **text)
Returns the Document as one text.
DLL_EXPORT ReturnCode tixiAddPoint(const TixiDocumentHandle handle, const char *pointParentPath, double x, double y, double z, const char *format)
Adds an element containing the 3D cartesian coordinates of a point.
DLL_EXPORT ReturnCode tixiUpdateFloatVector(const TixiDocumentHandle handle, const char *path, const double *vector, const int numElements, const char *format)
Updates the data of a vector element.
DLL_EXPORT ReturnCode tixiOpenDocumentFromHTTP(const char *httpURL, TixiDocumentHandle *handle)
Open an XML-file for reading from a http web resource.
DEPRECATED DLL_EXPORT ReturnCode tixiGetArray(const TixiDocumentHandle handle, const char *arrayPath, const char *elementName, int arraySize, double **values)
Reads in an array. The memory management of the array is done by tixi.
DLL_EXPORT ReturnCode tixiAddDoubleElement(const TixiDocumentHandle handle, const char *parentPath, const char *elementName, double number, const char *format)
Creates an element which holds a floating point number.
DLL_EXPORT ReturnCode tixiUIDSetToXPath(TixiDocumentHandle handle, const char *xPath, const char *uID)
Sets a uID attribute to a node, specified via its XPath.
DLL_EXPORT ReturnCode tixiRegisterNamespace(const TixiDocumentHandle handle, const char *namespaceURI, const char *prefix)
Registers the given namespace and its prefix.
DLL_EXPORT ReturnCode tixiAddCpacsHeader(const TixiDocumentHandle handle, const char *name, const char *creator, const char *version, const char *description, const char *cpacsVersion)
Add CPACS header to XML-file.
DEPRECATED DLL_EXPORT double tixiGetArrayValue(const double *array, const int *dimSize, const int *dimPos, const int dims)
Getter function to take one multidimensionally specified element from a complete array,...
DLL_EXPORT ReturnCode tixiGetVectorSize(const TixiDocumentHandle handle, const char *vectorPath, int *nElements)
Retrieves the size of an Vector.
DLL_EXPORT ReturnCode tixiCheckAttribute(TixiDocumentHandle handle, const char *elementPath, const char *attributeName)
Checks the existence of an element's attribute.
DLL_EXPORT ReturnCode tixiSaveDocument(TixiDocumentHandle handle, const char *xmlFilename)
Write XML-document to disk.
DLL_EXPORT ReturnCode tixiSetDocumentPath(TixiDocumentHandle handle, const char *xmlFilename)
Sets a file path for the document. The function sets the path independently of the saving/creating fu...
DLL_EXPORT ReturnCode tixiUpdateIntegerElement(const TixiDocumentHandle handle, const char *elementPath, int number, const char *format)
Updates the double content of an element.
DLL_EXPORT ReturnCode tixiAddDoubleElementNS(const TixiDocumentHandle handle, const char *parentPath, const char *qualifiedName, const char *namespaceURI, double number, const char *format)
Creates an element which holds a floating point number in the given namespace.
DLL_EXPORT ReturnCode tixiAddExternalLink(const TixiDocumentHandle handle, const char *parentPath, const char *pathOrUrl, const char *filename, AddLinkMode mode)
Adds a link to an external xml file.
DLL_EXPORT ReturnCode tixiUIDCheckDuplicates(TixiDocumentHandle handle)
Performs a check over all UIDs and checks for duplicates.
DLL_EXPORT ReturnCode tixiAddDoubleListWithAttributes(const TixiDocumentHandle handle, const char *parentPath, const char *listName, const char *childName, const char *childAttributeName, const double *values, const char *format, const char **attributes, int nValues)
High level routine to write a list of elements with attributes.

Generated Wed May 13 2026 09:03:42, by Martin Siggel DLR