VBScript, XPath and XML

V

VBScript (Visual Basic Scripting Edition) is a scripting language developed by Microsoft and supported by Microsoft’s Internet Explorer Web browser. VBScript is based on Visual Basic programming language, but it is much simpler.

In many ways, it is similar to JavaScript. Allows web page authors to include interactive controls, such as buttons and scrollbars, in their web pages.

VBScript has been installed by default on every Microsoft Windows desktop release, starting with Windows 98, on Windows Server starting with Windows NT 4.0 Option Pack and optionally with Windows CE.

XPath (XML Path Language) is an expression language used to select portions of an XML document or to calculate values ​​(strings, numbers, or boolean values) based on the content of an XML document. The current version of the language is XPath 2.0, but the most common version at present is version 1.0.

The XPath language is structured on the tree-like representation of the XML document, offering the possibility to navigate in this tree, by selecting XML nodes that meet different criteria.

The reason for the appearance of this language was the desire to use the same syntax and the same model for both XPointer and XSLT, XPath has ceased to be among the programmers as a small query language, and some of its parts are used in the W3C specifications for XML Schema and XForms.

The most common method of XPath expressions (the one from which the name of the language comes from) is path expression. A path expression is written as a sequence of steps to get from an XML node (the current context node) to another node or set of nodes. The steps are separated by the “/” character (eg, path). Each step has three components:

– Axis specifier

– Node Test

– Preach

There are two notations – the first, known as the abbreviated syntax, is more compact and allows XPaths to be written and read in a more intuitive way, and in many cases, more intuitive character sets and constructs. The full syntax is more complex but allows more options to be specified, and a more detailed description – if it is read more carefully.

Compact scoring allows for multiple default notations and abbreviations for the most common cases. 

The simplest XPath has the following form /A/B/C which selects elements C that are copies of elements B, which in turn are copies of elements A, which is the most comprehensive element of the XML document. XPath syntax was made to simulate URI (Uniform Resource Identifier) ​​syntax and file path syntax.

Extensible Markup Language (XML) is a markup meta-language recommended by the Web Consortium for creating other markup languages, such as XHTMLRDFRSSMathMLSVGOWL, etc. These languages ​​form the XML language family.

XML meta-language is a simplification of SGML (from which HTML is derived) and was designed for the purpose of data transfer between applications on the Internet, description of data structure.

XML is now also a model for storing unstructured and semi-structured data within native XML databases.

XML data can be used in HTML language, allowing quick identification of documents using search engines. With the help of JavaScriptPHP, etc. XML files can be embedded in web pages; the most eloquent example is the RSS system that uses an XML file to transport information from a web page to multiple web pages. As the name suggests, it is an extensible markup system, that is, simpler, it is a markup system similar to HTML, only that it is much better and more dynamic, the essential difference being that the tags are not defined, the programmer is free to experience.

It may be difficult to understand, but XML files do nothing, they are just text sequences created to structure, store and transport information.

In the XML system, the author can define his own tags to be manipulated according to his own taste and needs.

Recent Posts

Archives

Categories