Documentación de la API > Feature element trees > Object ProElemtree > Function ProElemtreeFromXMLCreate
Function ProElemtreeFromXMLCreate
Description
Reads in the xml file and converts into an element tree. This element tree can be used as an input to ProFeatureWithoptionsCreate or ProFeatureWithoptionsRedefine
Replacement in Object TOOLKIT:
Synopsis
#include <ProElement.h>
ProElemtreeFromXMLCreate
(
ProPath xml_file
/* (In)
the name of the xml file with location this can be a relative or absolute path to the xml file or a URL ( http or file ) for the xml file
*/
ProElement* elemtree
/* (Out)
root element of the created element tree Memory allocated by the function and to be freed by caller using ProElementFree()
*/
ProXMLErrorlist** p_errors
/* (Out)
ProArray of errors. The memory allocated by the function has to be freed by using the function ProXmlerrorlistProarrayFree().
*/
)
Returns
Successful in creating the element tree
Invalid inputs
Errors in the XML file; The function populates the ProArray p_errors to hold the errors ( refer all fields )
XML Parser failed to initialize
XML Parser failed during parsing
XML Parser failed opening DOM Tree
XML Parser failed due to other errors
Error occurred during creation of output transcoder
Function failed to create the element tree due to an error in the ProElemId, ProType, or Enum Value in the XML file The function populates the ProArray p_errors to hold the errors ( refer to fields: error_type = PRO_XML_OTHERERROR line_number = sr. no. of Element in file message = name of Element column_number = elem_id of Element )
User Guide References
¿Fue esto útil?