Description The Caravan XML object is a very useful and
powerful object which can be used to access files.It can be used to create an object for an
xml file. It can be used to parse the xml file and extract the data from the xml file. Caravan
Business Server has Inbuilt Xml Parser Support. After creating an Object of Caravan Xml
Object,the Xml File is Parsed and xml data can be extracted after parsing. Caravan support for
XML is designed to make XML data accessible in Caravan language, without a steep learning
curve for the programmer. Caravan can parse XML documents from static files or web sources and
create XML objects which are similar to Caravan objects.
Objects are tree structured and special keywords are used to traverse the tree since there are
nodes and leaves. Nodes can have attribute/s and other nodes and leaves but can have no value.
Leaves can have a value and attribute/s.
Syntax
Creating an object from the Xml file
object objectname=xmlfilename
Used to access the root of the object.
objname(.node)=".root"
Used to access a specific node
objname(.node)="nodename"
Used to access the next node of the same name.
objname(.next)
Used to access the previous node of the same name.
objname(.node)=".previous"
Access the name of the node.
objname(.name)
Access error.
objname(.error)
Access the attribute.
objname(attribute)
Back |