Cicode Programming Reference > Cicode Function Categories > XML Functions > XMLOpen

XMLOpen

Reads an XML file from disk to create XML document.

Syntax

INT XMLOpen(STRING sFilePath)

sFilePath

Absolute path of XML file

Return Value

Handle of the XML document, or -1 on error.

Related Functions

XMLClose, XMLCreate, XMLGetAttribute, XMLGetAttributeCount, XMLGetAttributeName, XMLGetAttributeValue, XMLGetChild, XMLGetChildCount, XMLGetParent, XMLGetRoot, XMLNodeAddChild, XMLNodeFind, XMLNodeGetName, XMLNodeGetValue, XMLNodeRemove, XMLNodeSetValue, XMLSave, XMLSetAttribute

Example

Following example reads disk file "H:\Data\books.xml" to create XML document.

INT hDoc, hNode;
hDoc=XMLOpen("H:\Data\books.xml");

See Also

XML Functions

Published June 2018