scieee AI-readable full text Open interactive document viewer

Web XML IDE

Ferreira, José Pedro Castro

Abstract

This document is the report for a Master Thesis, included in the second year of the Master’s Degree in Informatics Engineering at Universidade do Minho in Braga, Portugal. The project consists on the design and development of a Web IDE for XML to support teaching annotation languages to students that deal with digital documents but are not related to computer programming. The developed tool must be easy to install and to use, considering it is made to help users that are not experienced with programming or annotation languages nor IDEs. The goal of this project is to get an user-friendly, easy to learn, Web-based platform to assist in: creating well-formed XML documents, DTDs, XML Schemas and XML Stylesheets; converting DTDs to XML Schemas; validating XML documents according to given DTDs or Schemas; running XPath expressions on XML Documents; and automatically generating XML documents from a DTD or a Schema and some parameters. The state of the art on XML IDEs was analyzed in order to prove the necessity for the proposed application. The different IDEs were analyzed regarding their features, UI/UX, ease-of-use, price and availability. This document also contemplates the proposed approach for meeting the project’s ob jectives, the plan for the development stage of this project, as well as the definition for the desired features, and the report for the development process itself, describing how the different features were implemented. The developed application was compared to the analyzed state of the art IDEs and proved to meet the proposed objectives for the project. The WebXMLIDE application is publicly available for free in the following link: https: //webxml.epl.di.uminho.pt/.

Full text

Universidade do Minho Escola de Engenharia Departamento de Informática José Pedro Castro Ferreira Web XML IDE August 2023 Universidade do Minho Escola de Engenharia Departamento de Informática José Pedro Castro Ferreira Web XML IDE Master dissertation Master Degree in Informatics Engineering Dissertation supervised by José Carlos Ramalho Pedro Rangel Henriques August 2023 i AUTHOR COPYRIGHTS AND TERMS OF USAGE BY THIRD PARTIES This is an academic work which can be utilized by third parties given that the rules and good practices internationally accepted, regarding author copyrights and related copyrights. Therefore, the present work can be utilized according to the terms provided in the license bellow. If the user needs permission to use the work in conditions not foreseen by the licensing indicated, the user should contact the author, through the RepositóriUM of University of Minho. License provided to the users of this work Attribution-NonCommercial CC BY-NC https://creativecommons.org/licenses/by-nc/4.0/ ii STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. José Pedro Castro Ferreira iii I would like to start by thanking Professor José Carlos Ramalho for the technical guidance and for constantly pushing me to present good results on this project. I would also like to thank Professor Pedro Rangel Henriques for the patience showed while helping me write this thesis, being available at all times and providing me with the opportunity to see this project tested in the real world. The last five years were full of great memories that I will take with me for the rest of my life and I would like to thank the 46 people who made this journey with me from day 1. Thank you for putting up with me, for trusting me and for giving me the best moments of my life. What we built and accomplished will always be my proudest achievement of the last five years. To my closest friends Nuno Costa and João Bigas, thank you for helping me escape when I needed to, focus when I wouldn’t and believe when I couldn’t. Every single one of my achievements is (at the very least) a little bit yours. A very special thank you to Rosa and Manuel Silva for every conversation, for their support, their friendship and for giving me a second home. I would like to thank my family for keeping me focused, for their undying support, for believing in me and for being my biggest inspiration. To my mother, Isabel, thank you for keeping me on the right track the whole time and for the love only a mother knows how to give. To my sister, Raquel, thank you for providing me with such a good example on overcoming challenges and working hard to achieve what I want. To my sister, Sara, thank you for showing me what hard-work looks like and making me laugh with all the good stories she has to tell. And last to my father, José, for being my biggest inspiration, for being my role model, for showing me what hard-work looks like, for making me who I am today, for never letting me slip away and for supporting me in everything I ever did. A very special thank you to my girlfriend Filipa Antunes for her patience during this year, for her help with this thesis, for endlessly reading about XML while having no idea what it even means. For making me strive to be the best I can, for believing in me, for pushing me, for making me laugh and for being there for me unconditionally. I am so lucky to have found you. I would like to finish this part of my thesis remembering my grandfather Gabriel, my grandmother Noémia, my godfather Jorge and my aunt Judite. They passed away in the last five years and unfortunately they’re not here today to witness me reaching the finishing line. This is in their memory. ABSTRACT This document is the report for a Master Thesis, included in the second year of the Master’s Degree in Informatics Engineering at Universidade do Minho in Braga, Portugal. The project consists on the design and development of a Web IDE for XML to support teaching annotation languages to students that deal with digital documents but are not related to computer programming. The developed tool must be easy to install and to use, considering it is made to help users that are not experienced with programming or annotation languages nor IDEs. The goal of this project is to get an user-friendly, easy to learn, Web-based platform to assist in: creating well-formed XML documents, DTDs, XML Schemas and XML Stylesheets; converting DTDs to XML Schemas; validating XML documents according to given DTDs or Schemas; running XPath expressions on XML Documents; and automatically generating XML documents from a DTD or a Schema and some parameters. The state of the art on XML IDEs was analyzed in order to prove the necessity for the proposed application. The different IDEs were analyzed regarding their features, UI/UX, ease-of-use, price and availability. This document also contemplates the proposed approach for meeting the project’s objectives, the plan for the development stage of this project, as well as the definition for the desired features, and the report for the development process itself, describing how the different features were implemented. The developed application was compared to the analyzed state of the art IDEs and proved to meet the proposed objectives for the project. The WebXMLIDE application is publicly available for free in the following link: https: //webxml.epl.di.uminho.pt/. Keywords: XML, XSL, DTD, XSD, XSLT, XPath, IDE, Web-platform, Schema, Documents iv RESUMO Este documento serve como relatório de uma Tese de Mestrado, incluída no segundo ano do Mestrado em Engenharia Informática na Universidade do Minho em Braga, Portugal. Este projeto consiste no design e desenvolvimento de um Web IDE de XML para suportar o ensino de linguagens de anotação a estudantes que lidam com documentos digitais mas não são de áreas relacionadas com programação. A ferramenta proposta deve ser fácil de instalar e usar, considerando que é feita para ajudar utilizador que não são experientes em programação, linguagens de anotação ou IDEs. O objetivo deste projeto é obter uma plataforma baseada na web, fácil de utilizar e aprender para ajudar: na criação de documentos XML, DTDs, XML Schemas e XML Stylesheets bemformados; na conversão de DTDs para Schemas; na validação de documentos XML de acordo com DTDs ou Schemas; na testagem de expressões XPath em documentos XPath; e na geração automática de documentos XML a partir de DTDs ou Schemas e alguns parâmetros. O estado da arte no que toca a IDEs de XML foi analisado a fim de comprovar a necessidade da aplicação proposta. Os diferentes IDEs foram analisados quanto às suas funcionalidades, UI/UX, facilidade de uso, preço e disponibilidade. Este documento contempla ainda a abordagem proposta para o cumprimento dos objetivos do projeto, o plano para a fase de desenvolvimento deste projeto, bem como a definição das funcionalidades pretendidas, e o relatório do próprio processo de desenvolvimento, descrevendo como foram implementadas as diferentes funcionalidades. A aplicação desenvolvida foi comparada com os IDEs do estado da arte analisados e provou corresponder aos objetivos definidos para o projeto. A aplicação WebXMLIDE está publicamente disponível de forma gratuita no seguinte link: https://webxml.epl.di.uminho.pt/. Palavras-Chave: XML, XSL, DTD, XSD, XSLT, XPath, IDE, Plataforma Web, Schema, Documentos v CONTENTS 1Introduction 1 1.1Context......................................... 1 1.2Objectives ....................................... 2 1.3ResearchHypothesis................................. 3 1.4DevelopmentApproach ............................... 3 1.5DocumentStructure ................................. 3 2XML & Company 4 2.1XML .......................................... 4 2.1.1Well-formed XML Documents . . . . . . . . . . . . . . . . . . . . . . . 5 2.1.2ValidXMLDocuments............................ 10 2.1.2.1XMLDTD ............................. 10 2.1.2.2XMLSchema............................ 14 2.2XSL........................................... 22 2.2.1XSLT ...................................... 25 2.2.2XPath&XQuery ............................... 26 2.3Summary........................................ 33 3State of the Art 34 3.1Oxygen......................................... 34 3.2CodeBrowser ..................................... 36 3.3EmcasforXML .................................... 39 3.4LiquidXMLStudioIDE ............................... 40 3.5Stylus.......................................... 41 3.6Komodo ........................................ 42 3.7Kate........................................... 43 3.8XMLGrid.net...................................... 44 3.9XMLSpy ........................................ 46 3.10 ExtendsClass...................................... 47 3.11 Editix.......................................... 47 3.12 XMLmind ....................................... 48 3.13 CodeBeautify..................................... 49 3.14 OnlineXMLTools................................... 50 3.15 XMLNotepad ..................................... 50 vi contents vii 3.16 NotePad++....................................... 52 3.17 VisualStudioCode.................................. 53 3.18 ResearchSummary.................................. 53 3.19 Summary........................................ 58 4Proposed Approach 59 4.1SystemArchitecture ................................. 59 4.2UseCases ....................................... 61 4.2.1Create Valid XML, DTD, XSD and XSLT Files . . . . . . . . . . . . . . 62 4.2.2Validate XML Documents against DTD or XSD . . . . . . . . . . . . . 63 4.2.3ConvertDTDtoXSD............................. 64 4.2.4Previewing XSLT Transformations . . . . . . . . . . . . . . . . . . . . . 65 4.2.5TestXPathExpressions ........................... 66 4.2.6Generate XML Documents according to DTD or XSD . . . . . . . . . . 67 4.3DesignMockups ................................... 67 4.3.1XMLEditor .................................. 67 4.3.2DTDEditorandTools ............................ 69 4.3.3XSDEditorandTools ............................ 70 4.3.4XSLTEditorandTools............................ 71 4.3.5XPathTester.................................. 72 4.4Summary........................................ 73 5Development 74 5.1TechnologiesandTools................................ 74 5.1.1Python Django -Prototyping........................ 74 5.1.2Vue.js - Development Framework . . . . . . . . . . . . . . . . . . . . . 75 5.1.3Express & Node.js - Back-end Server . . . . . . . . . . . . . . . . . . . 75 5.1.4CodeMirror 5-WebCodeEditor ..................... 76 5.1.5Libxmljs2-XPathQueryTester ...................... 77 5.1.6node-libxml - Schema Parser and Validator . . . . . . . . . . . . . . . 77 5.1.7xmldom - Server-side XML Parsing . . . . . . . . . . . . . . . . . . . . 77 5.1.8Trang -DTDtoXSDConverter....................... 78 5.2DevelopmentPlan .................................. 78 5.2.1PlanningComponents............................ 78 5.2.2Final Architecture for the Web Application . . . . . . . . . . . . . . . . 83 5.2.3Requirements and Features . . . . . . . . . . . . . . . . . . . . . . . . . 84 5.2.3.1Technical Requirements . . . . . . . . . . . . . . . . . . . . . . 84 5.2.3.2Quality of Life Improvements . . . . . . . . . . . . . . . . . . 87 Acronyms xiv X Extensible Markup Language. XML Path Language. XML QUeries. XML Schema Definition. Extensible Stylesheet Language. XSL Formatting Objects. XSL Transformations. 1 INTRODUCTION This first chapter will be about explaining the context and motivation of the project, as well as explaining the project’s objectives, the document structure, the research hypothesis and the development approach to the proposed software. When talking about the context and motivation to the project, it’s explained why this project is viable and useful. Then, the main objectives of the project are defined (on later stages of the project, each of these objectives will be turned into a specific feature and/or requirement). For now, it’s important to keep an unrestricted, not technically defined or restrained view of these goals. The goal of this project is to prove the Research Hypothesis, defined in section 1.3. The time planning and work-order for researching, developing the proposed software, writing of the Master’s thesis report and validating results is described in section 1.4as well as the proposed structure for this document. 1.1 context With the constant growing importance of technology, it came as no surprise that it has been, still is, and will go on being used to ease day-to-day tasks on all areas of life for workers and consumers. This growth in interest and use, led to the world becoming more and more digital, and out of all things that are being transformed into a new digital form, this thesis report will focus on documents. Documents of any kind are something we are not strangers to. They can be public records, medical reports or any document that is used to share information with someone or to be stored. Before the technological advances mentioned earlier, we were used to seeing this type of documents in binding folders archived in a room with hundreds of other bindings or being sent over mail to other people or businesses, but now that nearly every service has taken a digital form, how are these documents being shared or archived? We can send e-mails or write documents in our computers containing information of any kind, sorted as we like, in any language we want, containing no rules, no standards and no proper validation. This would obviously be a problem for sharing important documents that need 1 1.2. Objectives 2 to follow certain rules to be valid. For example, when a doctor looks at a patient’s exams results, information should be clear, every number should have a measure next to it so that there’s no ambiguity and this way, mistakes are avoided. The same goes to any document that needs validation and structure for the information they carry, and this is where XML comes into play Ramalho and Henriques (2002). XML (Extensible Markup Language) is a markup language that was created to ease information sharing between machines and people. It was designed to be suitable for webusage and it offers solutions to the problems mentioned before by identifying documents with custom tags, validating documents and creating rules about the structure of a given type of document with a XML DTD Inc. (1998) or XML Schema Sperberg-McQueen and Thompson (2000). As technology grows and the world is taking more and more advantages of this growth, many workers now face this paradigm-shift of having to go from working with a paper and a pen, to working with a mouse and keyboard, which in itself represents a difficulty for some of these workers who are not used to work with a computer in any way, specially considering they are expected to be able to generate well-formed, valid and structured XML files. The solution is very simple: prepare these workers to manage, create and validate XML documents. To do so, these new users (often beginners when it comes to using code editors) need an easy-to-understand, highly-available platform not only to learn but to work on. With a quick search online, it’s easy to notice a certain lack of good affordable options when it comes to XML IDEs. Some are expensive, some are only available in certain systems and others simply don’t have some of the features a beginner needs to be able to learn and properly create and validate XML documents and Schemas. This lack of an affordable, easy-to-use and complete tool is the reason behind this thesis. 1.2 objectives This Master’s Thesis project has the following objectives: • Development of a Web XML IDE, easy to install, learn and use. • Development of a platform that helps users on creating well-formed XML documents, as well as on validating documents according to a DTD or a Schema. • Development of a platform that helps users create DTDs and Schemas, and allows for DTD to Schema conversion. • Development of platform features that allow for statistical reports, automatic generation of XML documents from a DTD or a Schema and some parameters, and document visualization in 3distinct ways: text, dev (text and annotations) and transform (transformed text). 1.3. Research Hypothesis 3 1.3 research hypothesis This Master’s work intends to prove it is possible to create a tool using web development that allows creating, editing and validating XML documents in an agile and natural way for non-professional users. 1.4 development approach The development of this master thesis is going to follow an iterative methodology throughout an academic year, composed of the following steps: • Bibliographic study and research on the state of the art on XML IDEs, their features, pricing and availability. • Research of cutting-edge technologies that are going to be used to complete each goal of this project. More specifically, the implementation of a web app, creating and validating documents, code analyzers and compilers. • Analysis over XML documents, DTDs and Schemas. These will be used later for testing in later phases of the development. • Development of the proposed tool and all its requirements. • Results evaluation and discussion 1.5 document structure This document is structured in 8chapters. This first chapter presents this Master work’s context, motivation, objectives, research hypothesis and development approach. Chapter two will present a quick explanation of the most important components of XML documents and the tools that can be used to validate, present and explore these documents. Chapter three will focus on the state of the art. Chapter four will explain the proposed approach to develop the project. Chapter five will present the development process (technologies used, plans and implementation). Chapter six will provide screenshots of the final product and the list of implemented features. Chapter seven will showcase the testing phase for the final product and analyze results from user feedback. Chapter eight will serve as conclusion to this document, as well as present the work plan for the project. 2 XML & COMPANY This chapter will explain the main components of this Master’s project: XML, DTDs, XML Schemas and XSL (XSLT, XPath, XSL-FO and XQuery). It explains what XML and XSL are and how to generate well-formed, and valid documents (as well as their components). When thinking about any way of writing digital documents, it’s easy to imagine a software where the document is written and its content is formatted using the tools provided by the software. In the context of XML documents, the document content is written in the XML file, using annotations (which define interpretation and structure) and data (which is the actual content) - both covered and explained in section 2.1.1of this document. These documents don’t have any formatting and that’s where XSL comes in: used to format XML files and make them presentable on the web, just like CSS is used to style HTML files. 2.1 xml The Extensible Markup Language (or XML) is a simple and flexible text format, designed to meet the challenges of publishing digital documents. It plays an important role in the exchange of data on the web (Quin,2016). It can be used to write documents containing a wide variety of data with all sorts of meaning, use and importance. Example 2.1represents a simple XML document containing information about a CD Catalog: 1<?xml version=" 1.0" encoding="UTF−8" ?> 2<catalog > 3<cd> 4< t i t l e >Empire Burlesque </ t i t l e > 5< a r t i s t >Bob Dylan</ a r t i s t > 6</cd> 7<cd> 8< t i t l e >Divide</ t i t l e > 4 2.1. XML 5 9< a r t i s t >Ed Sheeran </ a r t i s t > 10 </cd> 11 <cd> 12 < t i t l e >Let I t Be</ t i t l e > 13 < a r t i s t >The Beatles </ a r t i s t > 14 </cd> 15 <cd> 16 < t i t l e >AM</ t i t l e > 17 < a r t i s t >Arctic Monkeys</ a r t i s t > 18 </cd> 19 <cd> 20 < t i t l e >Marshall Mathers LP</ t i t l e > 21 < a r t i s t >Eminem</ a r t i s t > 22 </cd> 23 <cd> 24 < t i t l e >Chinese Democracy</ t i t l e > 25 < a r t i s t >Guns 'n ' Roses</ a r t i s t > 26 </cd> 27 </catalog > Example 2.1: cdcatalog.xml The most important part for now is to consider that this document is well-formed. The next section will explain what this means in more detail. 2.1.1Well-formed XML Documents An XML document consists of two components: data and annotations. But what are these? This section explains these two components, as they are key to a well-formed XML document. The data in an XML document is blocks of text. Other data types are external to the document but can be referenced using entities. The annotations in an XML document describe its structure and provide an interpretation to its content. An annotation consists of: symbols marking the beginning of an element, symbols marking the end of an element, symbols to represent empty elements, references to entities, comments, special text sections limiters, document type declarations and processing instructions (Ramalho and Henriques,2002). A simple example of a well-formed XML document, using the traditionally used "Hello World": 1<?xml version=" 1.0" encoding="UTF−8" ?> 2<document> 3Hello World ! 4</document> 2.1. XML 6 Example 2.2: Hello_World.xml An annotation always start with the symbol ’<’ and ends with ’>’. With this in mind, it’s easy to notice the document in example 2.2contains three annotations: "<?xml ... ?>, <doc> and </doc>. The next sections will go through the different components of a well-formed XML file, describing and explaining them. the xml declaration For a document to be considered well-formed, it must always start with an XML Declaration. Usually, if there’s anything before the declaration or the declaration is absent, any XML parser will throw an error when parsing the document. An XML Declaration is a special annotation with the following syntax: 1<?xml 2version=" 1.0" 3encoding="UTF−8" 4standalone=" yes " ?> Example 2.3: The XML Declaration Three attributes can be used in an XML Declaration: VERSION This attribute’s value defines the XML Version that’s being used. At the time this document’s being written, there are only two available options for this attribute: 1.0 and 1.1. This attribute must be present in all declarations. STANDALONE This attribute is optional and can have two values: "yes" means that the document is self-contained, which means it doesn’t have any external reference; "no" means the document contains references to external documents (for example: other documents). ENCODING This attribute is also optional and defines the encoding used for the characters. The default value is "UTF-8". comments A comment can be used at any point in an XML document. It starts with the symbols ’<!–’ and ends with the symbols ’–>’. 2.1. XML 7 A short example of a comment in an XML file: 1<?xml version=" 1.0" ?> 2<!−−This i s a comment−−> 3<doc > . . . . < / doc> Example 2.4: The XML Comment There are some rules when using comments: • Comments must always come after the XML Declaration; • Comments can’t be written inside an annotation; • The character sequence ’--’ can’t be used inside a comment (because it marks the end of the comment). processing instructions Processing instructions are the only reminiscent of procedural annotation that remains in XML. A processing instruction is not part of a document’s content, it is actually a direct instruction to the parser that something must be executed at that point when the document is being transformed. A processing instruction start with ’<?processor-id> and ends with ’?>’. Notice how the XML Declaration shown previously is nothing but a processing instruction, with ’xml’ being the processor id. Next, an XML document containing some processing instructions is presented: 1<?xml version=" 1.0" ?> 2<catalog > 3<?html action=" hr " ?> 4<cd id=" cd1" type=" album "> 5< t i t l e >AM</ t i t l e > 6< a r t i s t >Arctic Monkeys</ a r t i s t > 7</cd> 8<?html action=" hr " ?> 9</catalog > Example 2.5: XML file containing processing instructions Example 2.5contains two processing instructions, besides the previously explained XML Declaration: <?HTML...?> Both processing instructions identify actions to be executed when the XML document is being transformed to HTML. In this specific case, the processing instructions 2.1. XML 8 state that when the parsing process of the XML document coincides with the process of generating the documents HTML version, two hr marks must be generated at the position where the processing instructions are written in the original document. At this point in this document, everything that can appear at the start of an XML document (before the body of the document), has already been explained: processing instructions, comments and the XML declaration (the first two may appear anywhere in the document). A well-formed XML document has many different components, which will be described in the following sections of the document. elements An XML document is structured based on elements that define the logic blocks in which the global content can be partitioned. An element is composed by three parts: starting annotation, content and ending annotation. The starting annotation start with ’<’ and ends with ’>’ while the ending annotation starts with ’</’ and ends with ’>’. Both contain a name for the element they identify and locate in the text. A quick example of an element in a small piece of text: 1I ' ve been to <place >New York</place > , <place >London</place > and <place >Paris </ place >. Example 2.6: XML Element example In example 2.6, the words New York,London and Paris are noted as elements with type place. An XML rule dictates the names specified in the starting and ending annotations must be the same. This is one of the key principles to a well-formed XML document. An element must be contained within another element and the only exception applies to the root element. Some hierarchical structures can be recursive. This is, an element may contain a direct or indirect instance of itself. This possibility of the use of recursion will, most of the times, cause problems during the information processing stages but it is necessary to model certain types of information. This subject will be exemplified when presenting DTDs and Schemas. There are certain rules that the name of an element must follow: 1. the first character must be a letter, an underscore or a colon sign; 2. the following characters can be letters, digits, underscores, colon signs, dots and hyphens; 2.1. XML 9 3. there can’t be white spaces in the name of an annotation. XML is case sensitive. This means place,Place and PLACE refer different elements. It is also important to point out that the content of an element can never contain the characters ’<’ and ’>’ since these mark the limits of the annotation itself. Instead, the user must use ’<’ and ’&rt;’. These will make any editor present them as the intended characters, but won’t interpret them as annotation limiters. It’s also important to present the different types of content an element can have: TEXT-BASED CONTENT When the content of the element is purely text - just like the elements title and artist in example 2.1. MIXED CONTENT When the content of the element is composed by text and other elements. EMPTY ELEMENT When the element has no content. This usually happens when the element is used by its position. For example to break lines or to draw an horizontal line - these are like the commonly known HTML elements br and hr. This can also be the case for elements that represent references. attributes An element may have one or more attributes which can be optional or mandatory. These attributes give a sense of description to the element they’re associated to. When wondering what separates attributes from elements, it’s easy to compare it to the English language: elements are like nouns, attributes are adjectives. Let’s see the following example: 1This i s a house −−− <house> 2This i s a green house −−− <house color=" green "> Example 2.7: XML Attributes There’s no limit to the number of attributes associated to an element. Attributes always come in the starting annotation to an element since they describe the content that follows them. An attribute is defined by a name and a value. The name and value of an attribute must be separated by the sign "=" and the value must be enclosed in single or double quotes. The names of the attribute follows the same rules as the names of the elements. The value will always be the text enclosed in quotes. There are some reserved attributes in XML, but considering this document is not an extensive XML guide, it will not explain further than the basic concept of an attribute. 2.1. XML 16 simple data types Simple data types restrain the text that can appear as content of either an attribute or an element. The content for textual elements and attribute values is pure text. XML Schema’s support for data type specification allows for restrictions on the text of these attributes and elements. Here are some of the supported base data types that XML Schema allows users to use to restrain the content of elements or to derive other base data types from: 4primitive types for character sequences (text) string A finite sequence of characters anyURI A normalized web address NOTATION Link declaration for an external document in a different format (other than XML) QName A qualified name follows the rules of the name of the element or attribute 3primitive types for numerical data decimal A decimal number of arbitrary precision float A floating point number (according to standard IEEE 754-1985) of simple precision (32 bits) double A floating point number (according to standard IEEE 754-1985) of double precision (64 bits) 9primitive types for time-related data and dates duration A period of time dateTime A precise instant in time (in the Gregorian calendar) date A specific date in the Gregorian calendar time An instant in time (hours, minutes and seconds) gYearMoth A year and a month of the Gregorian calendar gYear A year from the Gregorian calendar gMonthDay A month and a day from the Gregorian calendar gMonth A month from the Gregorian calendar gDay A day from the Gregorian calendar Table 1: Supported Base Data Types on XML Schema 2.1. XML 17 compound data types The declaration of a compound data type is used to define an element of structured type. This allows the user to specify which are the child elements, how these are composed, how many there are of each one, their attributes, etc. A good rule of thumb that can be used to know if an element should be declared as a simple or compound type is the following: "If an element has child elements or attributes, then it’s a compound type element." The example presented in the beginning of this section (Example 2.15) shows the declaration of compound type (the keyword complexType is used to declare these types). 1<xs : element name=" car "> 2<xs : complexType> 3<xs : sequence> 4<xs : element name=" year " type=" xs : i nt "/> 5<xs : element name=" brand " type=" xs : s tr ing "/> 6<xs : element name="model" type=" xs : st ri ng "/> 7</xs : sequence > 8</xs : complexType> 9</xs : element > Example 2.16: Compound Type Declaration This way, the content of element car is defined as a compound type which is, in this case, a sequence of three elements. Another way of achieving the same result would be to define an abstract compound data type (in this case carType) and later defining the element car with type carType: 1<complexType name=" carType "> 2<sequence> 3<element name=" year " type=" i nt "/> 4<element name=" brand " type=" st rin g "/> 5<element name=" model" type=" s tring "/> 6</sequence> 7</complexType> 8<element name=" car " type=" carType "/> Example 2.17: Abstract Compound Type Definition This methodology, when used in the definition of an XML Schema, allows for some important features: • It becomes possible to declare more elements of the defined abstract data type without repeating the block of code that defines it. 2.1. XML 18 • At any time, it’s possible to change the abstract type. These changes will be automatically propagated to all elements declared as having that type. As seen before, a compound type, defined by complexType in XSD, specifies a structure that can be constituted only by a set of attributes or by a substructure composed of other elements. For a compound type to be defined as a combination of other elements, one of the following three composition operators must be used: SEQUENCE - Specifies content composed by various elements that must appear in the specified order. CHOICE - Specifies content composed of one element, arbitrarily chosen from a set of alternative elements. Works as an alternative of the elements it contains. ALL - All elements contained in this composition operator can appear once or no times at all and can appear in any order. This composition operator has some restrictions: this operator can only be used in the highest level of nesting and it’s elements can only be of simple data types. When writing an XML Schema Definition, the user may have to define things like: an element is optional, an element can appear exactly three times or an element can appear five or more times. To define things like these, the occurrence operators are used. XML Schema has a mechanism that allows the user to specify the number of occurrences of a given element and it’s implemented with two attributes: minOccurs and maxOccurs. The first one specifies the minimum number of occurrences of the element and the second specifies the maximum number of occurrences of the element. Here are some of the possible combinations of these operators, which can be defined to have the same behaviour as DTD’s occurrence controls: minOccurs maxOccurs Description DTD 0 1 Element is optional ? 0"unbounded" Element can occur zero or more times * 1"unbounded" Element can occur one or more times + Table 2: Occurrence Operators on XML Schema 2.1. XML 19 derived simple data types In an XML Schema specification it’s possible to create new simple types from an existing primitive simple type. These are called Derived Simple Data Types and are specified using a restriction mechanism predefined in XML Schema. Before showing the possible restrictions, let’s see a quick example of a Derived Simple Data Type. Considering the previously shown example of an XML Schema Definition for the element car, there’s some missing information about a car. For example, the month of the car. We can define the simple type carMonth to associate with elements of type car, based on the primitive simple data type integer with some restrictions, as follows: 1<simpleType name=" carMonth "> 2< r e s t r i c t i o n base=" inte ger "> 3<minInclusive value=" 1"/> 4<maxInclusive value=" 12 "/> 5</ r e s t r i c t i o n > 6</simpleType> Example 2.18: "Derived Simple Data Type Definition" This way, the integer that appears as content of the element with type carMonth must be within the interval [1,12]. Here are some of the restriction operators available on XML Schema: MININCLUSIVE - Minimum value corresponding to the lower limit of a closed interval of numerical values MINEXCLUSIVE - Minimum value corresponding to the lower limit of an open interval of numerical values MAXINCLUSIVE - Maximum value corresponding to the higher limit of a closed interval of numerical values MAXEXCLUSIVE - Maximum value corresponding to the higher limit of an open interval of numerical values LENGTH - This operator allows for text length specification PATTERN - This operator allows for the specification of a regular expression that the content of the object must follow ENUMERATION - This operator allows for the specification of a list with the possible values for the content of the element 2.1. XML 20 attributes An XML Document may contain attributes that serve to describe the elements they’re applied on. In XML Schema, the definition of an attribute is quite similar to the definition of an element. The keys differences are: • It can’t contain elements or child attributes • It’s always defined with simple data types (primitive or derived) • It’s impossible to define the order in which the attributes appear in the element they’re applied to The declaration of attributes shall be done inside the complexType element, after specifying the element’s content: 1<element name=" . . . "> 2<complexType> 3[ Content S p e c i f i c a t i o n ] 4[ De fi niti on of a t t r i b u t e s ] 5</complexType> 6</element > Example 2.19: "Attribute Declaration Position" The general case for the definition of an attribute in XML Schema follows the following syntax: 1<attribute 2name=" attributeName " 3type="attributeType" 4use="attributeClass" 5default="attributeDefaultValue" /> Example 2.20: "Attribute Definition Syntax" By omission, when the existence of an attribute is declared, it’s presence in a document instance is optional. Despite the fact that attributes can only appear once in each element, sometimes it’s necessary to specify if the attribute must appear or if it’s optional. The attribute use of XML Schema is used to specify the type of occurrence of an attribute. This attribute can take the following values: REQUIRED - Attribute must appear in the document, mandatory. OPTIONAL - Attribute is optional (default value for attribute use). PROHIBITED - Attribute must not appear in the document, must be omitted. 2.1. XML 21 In XML Schema, it’s possible to provide default and fixed values for attributes (just like in DTD). The default value for an attribute can be defined by assigning the attribute default to the attribute definition in the XML Schema with the desired value inside double quotes. To define a fixed value, the process is the same, switching the default attribute with the fixed attribute. If an attribute’s value is fixed and the XML Document specifies the same attribute with a different value than the specified in the Schema, the parser will return an error since the attribute specification states that the value for that attribute is the one defined in the Schema. The only types allowed for attribute’s content are the simple types, either primitive or derived. Considering the possibility for restrictions seen in the Simple Data Types, these restrictions can also be applied on the content of attributes by defining derived types with the intended restrictions. empty elements An empty element has no text or children elements. The only thing it may contain is attributes. Otherwise, an empty element is just a mark, which is rare but may appear in some applications. The two different ways of declaring an empty element are shown in Example 2.21: 1<!−− St ar ti ng with the d e fi n it i on of an empty element without a t t r i b u t e s −−> 2<element name="mark"> 3<complexType/> 4</element > 5 6<!−− Now the d e fi n it i on of an empty element with a t t r i b u t e s −−> 7<element name=" image "> 8<complexType> 9< a t t r i b u t e name=" path " type=" s tr in g " use=" required "/> 10 < a t t r i b u t e name=" format " type=" TiFormat "/> 11 </complexType> 12 </element > 13 14 <!−− For the example to be complete , the TiFormat Type must be defined −−> 15 <simpleType name=" TiFormat "> 16 < r e s t r i c t i o n base=" s tri ng "> 17 <enumeration value="GIF "/> 18 <enumeration value="BMP"/> 19 <enumeration value="PNG"/> 20 </ r e s t r i c t i o n > 21 </simpleType> Example 2.21: Empty Element Definitions in XSD 2.2. XSL 22 mixed content elements A mixed content is a combination of children elements and text. The necessity for mixed content comes naturally when the author has the need to associate meaning to a chunk of text. To indicate that a complexType has mixed content, the attribute mixed is added with value true. Everything else remains the same as defining a compound data type, allowing for the specification of order, alternative and freedom of occurrence to child elements as well as the use of occurrence operators. global elements vs local elements It’s important to distinguish the declarations of global elements and local elements: DECLARATIONS OF GLOBAL ELEMENTS - Children of root element schema. DECLARATIONS OF LOCAL ELEMENTS - Nested somewhere along the structure of a Schema and are not direct children of the schema root element. Once a given element is declared globally, any other element of the compound type can user that declaration, creating a reference to it. This possibility becomes extremely useful when facing a document with structural blocks that repeat along it’s body. Any globally defined element can be used as the root of an XML Document. In other words, in XML Schema there’s no explicit definition of the root element and every element declared as direct child of the schema root element can be the root of document instances of that Schema. 2.2 xsl XML Documents alone, present only the information they contain (annotations and data) without any formatting. This lack of a visual representation of data makes it harder for the common user to understand the content of a document. That’s the importance of formatting. Making sure a document is easy to read is key when we consider the importance of the documents a user creates. An XML Document without formatting presents information and structure but it may be harder to read if the user is not used to seeing documents structured in such way. Consider example 2.1of an XML document representing a CD Catalog, now containing more information about each of the CDs: 2.2. XSL 23 1<?xml version=" 1.0" encoding="UTF−8" ?> 2<catalog > 3<cd> 4< t i t l e >Empire Burlesque </ t i t l e > 5< a r t i s t >Bob Dylan</ a r t i s t > 6<country >USA</country > 7<company>Columbia</company> 8<price >10.90 </ price > 9<year >1985</year > 10 </cd> 11 . 12 . 13 </catalog > Example 2.22: cdcatalog.xml When opening this document in a browser, the information would be presented to the user as follows: Figure 1: Raw XML Document presentation It’s easy to see the data and annotations for the "cd" element but what if the catalog had more than one entry as it did in the previous example? It’s easy to understand that this way of presenting information is not the cleanest way to present information to a user that’s not used to work with XML. When writing an XML document, the writer wants the information to be easy to read and that’s where formatting comes in. Using XSL (and its components), it’s possible to format an XML Document in such a way that allows the user to see the document as a web page. This will happen because the XML document will be transformed into another XML document or any type of document that is 2.2. XSL 24 recognized by a browser like HTML. This transformation happens because of XLST, which will be covered in Subsection 2.2.1(Quin,2017). Considering the previous XML document and it’s presentation, let’s now look at the corresponding XSL file, responsible for formatting the previously shown information: 1<?xml version=" 1.0" encoding="UTF−8" ?> 2 3<xsl : s ty le sh ee t version=" 1.0" 4xmlns : xsl=" http ://www.w3. org/1999/XSL/Transform "> 5 6<xsl : template match="/"> 7<html> 8<body> 9<h2>My CD Collection </h2> 10 <t abl e border=" 1"> 11 < t r bgcolor=" #9acd32 "> 12 <th >Title </th > 13 <th >Artist </th> 14 </tr > 15 <x sl : for −each s e l e c t =" cata log/cd "> 16 <tr > 17 <td><xs l : value −of s e l e c t =" t i t l e "/></td> 18 <td><xsl : value −of s e l e ct=" a r t i s t "/></td> 19 </tr > 20 </xs l : for −each> 21 </table > 22 </body> 23 </html> 24 </xs l : template > 25 26 </xs l : styleshe et > Example 2.23: cdcatalog.xsl and adding the stylesheet reference to the original XML file: 1<?xml version=" 1.0" encoding="UTF−8" ?> 2<?xml− st yl es he et type=" t ex t/x sl " href=" cdcatalog . x sl "?> 3<catalog > 4<cd> 5< t i t l e >Empire Burlesque </ t i t l e > 6< a r t i s t >Bob Dylan</ a r t i s t > 7<country >USA</country > 8<company>Columbia</company> 9<price >10.90 </ price > 10 <year >1985</year > 2.2. XSL 25 11 </cd> 12 . 13 . 14 </catalog > Example 2.24: "cdcatalog_styled.xml" This document now has a visual representation that makes information easier to read and comprehend (see Figure 2). Figure 2: XML Document Presentation after formatting In the following sections, it is given a brief presentation of both XSLT and XQuery. There will also be a section about XPath, in which the language and its purposes are explained in a more detailed way than the other components of XSL. 2.2.1XSLT The example in Figure 2shows an example of the result of applying a style-sheet to an XML Document. As previously mentioned, the definition of a visual representation of an XML Document is key to ensure readability and to ease communication between a publisher and a reader of a certain document. To define these visual transformations, a style-sheet must be defined in the XSLT language, whose syntax is well-formed XML. The term style-sheet reflects the fact that one of the key roles of XSLT is to add graphic information to an XML Document by converting the objects from the source document and transforming them into XSL formatting objects, or into another presentation-oriented format such as HTML. There is a wide range of other transformations XSLT is used for (not exclusively for formatting and presentation applications). A transformation in XSLT describes a set of rules 2.2. XSL 32 STRING(ARG) - Converts arg, which can be anything, to a string. When applied to an element with empty content, returns false, which gives the programmer a way to test empty elements. NUMERICAL FUNCTIONS - This category contains functions that allow for arithmetic operations with element content. NUMBER(ARG) - Converts arg, which can be of any type, to a number. If the argument is absent, tis function is applied to the current node. SUM(XPATH-EXP) - Result is the sum of every element selected by xpath-exp, converted to a number. If one of the nodes has content that is not a number, the return value will be NaN (Not a Number). FLOOR(NUM) - Return the highest integer that is smaller or equal to the argument. CEILING(NUM) - Returns the smallest integer that is not smaller than the argument. ROUND(NUM) - Returns the closes integer to the argument. XPath shows many possibilities to explore the document tree and process the content in a single node or in a group of selected nodes. It is an easier to learn, understand and use alternative to XQuery (which is based in XPath), so it will be the main focus of this project. A quick presentation of XQuery is made in the following section but in the development phase of this project, only XPath will be used as the query language when working with XML. xquery XQuery is designed to be a language in which queries are concise and easily understood. It is also flexible enough to query a broad spectrum of XML information sources, including both databases and documents. XQuery is designed to meet the requirement of having a non-XML query syntax. This language is derived from an XML Query Language called Quilt, which borrowed features from several other languages like XPath,XQL,XML-QL,SQL and OQL.Jonathan Robie and Spiegel (2021b) XQuery comes as an evolution from the previously presented XPath but considering the target audience for this project (which is inexperienced programmers, starting to learn XML and annotation languages), XPath emerges as the easiest alternative to learn and use to query XML Documents. 2.3. Summary 33 2.3 summary To summarize, XML is annotation language that allows for creating digital documents. Languages like DTD and XSD can be used to define a validation schema for XML Documents. XSLT allows for styling XML Documents making them easier to visualize. And last, query languages such as XPath and XQuery can be used to explore and extract information from XML Documents. 3 S TAT E O F T H E A RT This chapter will present a list of the most popular (according to (Help,2022), and (Ghimire, 2022)) XML IDEs and Editors available at the moment this report is being written. For each IDE or Editor, let’s analyze the features it offers, how relevant and easy-to-use these features are to a beginner-level XML user and how easy it is to install and use these tools. After listing the XML IDEs and Editors, their features, pros and cons, a table will be presented, comparing all of the listed tools in terms of the previously mentioned characteristics among a few other considered relevant in the scope of this project. 3.1 oxygen Developed in Java, Oxygen XML 1 is a cross-platform editor available on Windows, MacOS and Linux. Oxygen presents itself as the complete solution for XML Authoring, Development & Collaboration, offering nine different tools: 1. XML Editor 2. XML Developer 3. XML Author 4. XML Web Author 5. Content Fusion 6. Publishing Engine 7. PDF Chemistry 8. XML WebHelp 9. Feedback 1https://www.oxygenxml.com/xml_editor.html, last accessed 29/11/2022 34 3.1. Oxygen 35 Of the above, this report will only focus on the first one when analyzing Oxygen’s features, availability and ease-to-use since XML Editor is described as a union of XML Author and XML Developer by the Oxygen development team. Let’s take a look at the relevant features and technologies described in the XML Editor website. STRUCTURED XML EDITING - A user-friendly interface is combined with a large number of intuitive XML editing features designed to help improve productivity and work quality. INTELLIGENT CONTENT ASSISTANCE - Designed to save time and keystrokes when inserting repetitive or complex structures. VALIDATION - Provides as-you-type validation support and context-sensitive editing capabilities to help the user make sure the documents are consistently well-formed and valid. XML DATABASES SUPPORT - Allows for XQuery and XPath queries against a native XML database. ALL XML STANDARDS SUPPORT - Oxygen XML Editor offers dedicated editors covering all XML Standards. The specialized views and operations of each editor offer support for editing all types of XML documents and other types of files like XML Schemas, XSLT, XQuery and many more. XSLT & XQUERY DEBUGGING - Offers a powerful XSLT and XQuery debugger that provides full control over the debugging process. Two dedicated perspectives are available, one for XSLT and one for XQuery. According to (Help,2022), the biggest concern about this tool is the lack of a user-friendly UI, which in our case study, is one of the most important requirements for a beginner-friendly XML IDE. One other key aspect about Oxygen XML is price. With prices ranging from 59$/year to 6576,5$/year (according to Oxygen XML’s own website), it’s clear to see this tool is not affordable for everyone and, for an inexperienced user, this price is too high, considering most of the features Oxygen XML offers won’t be relevant. The inexperienced user is looking for an XML IDE to learn how to write well-formed and valid documents and does not need the wide range of tools offered by Oxygen, making this tool’s pricing, one of the biggest reasons why it isn’t ideal for a beginner. 3.2. Code Browser 36 3.2 code browser According to Code Browser’s website 2 , this tool is a folding text editor, available in Windows and Linux Systems as a stand-alone app. It is designed to hierarchically structure any kind of text file and source code. It is supposed to make navigation through source code faster, easier and more intuitive. The basic idea of Code Browser is to only show the user what is relevant at each given moment. Let’s say there’s a big Java project with dozens of files, each containing a class and method definitions. Code Browser allows the user to see only the selected method from a selected class in a file. This makes code navigation a lot easier and reduces the amount of scrolling that is usually associated with big projects with massive source files. Despite being very useful for massive projects, Code Browser does not offer the best features when it comes to a XML Editor or IDE. First of all, features like auto-complete, as-you-type syntax checking and syntax highlighting are missing. All these make all the difference for an inexperienced user that is trying to learn since it makes easier for the user to know what’s doing wrong and to reduce the amount of keystrokes needed to create an XML Document. This tool is free and can be easily download and installed from the Code Browser’s website. The editor was tested using the CD Catalog (Code Example 2.1) file from the previous Sections. Code Browser offers the chance to read and edit text and source files in a few different views: • Simple • Tree • Smalltalk Style • Zoomable Let’s take a look at how Code Browser presents cd_catalog.xml file in the 4different views (see Figures 3,4,5, and 6). 2https://tibleiz.net/code-browser/index.html, last accessed 02/12/2022 3.2. Code Browser 37 Figure 3: Code Browser’s simple view Figure 4: Code Browser’s tree view 3.2. Code Browser 38 Figure 5: Code Browser’s smalltalk view Figure 6: Code Browser’s zoomable view The Figures above clearly show that Code Browser, despite being a really good option for big projects with many different source files, does not offer great support for single-document projects. It is also worth mentioning the lack of a user-friendly UI, using the tool was very confusing and counter-intuitive. 3.3. Emcas for XML 39 3.3 emcas for xml Emacs 3 is a powerful text editor available as a stand-alone app for Linux, MacOS and Windows. This tool focuses efficiently the coding phase of XML files. It also has a specific XML tab with some options like Validation, Schema Definition (from a file), etc.. Emacs is a free tool, available from the official website. Downloading and installing this software can be a bit tricky. An inexperienced user might not have the best time trying to download the installer, since the developers decided to give the user the ability to choose which version of Emacs to download, and for each version, there are a whole bunch of files that make the downloading process much more complicated than it needed to be. Emacs offers a very intuitive UI (and simple, considering this is not an IDE but an Editor). It also offers very clean syntax highlighting and as-you-type error checking. This certainly helps beginners write well-formed documents. However, auto completion and code suggestion are features that would be key for this tool but are missing. To test this editor, the same example file was used as in the previous Subsection (see Figure 7). Figure 7: Emacs for XML 3https://www.gnu.org/savannah-checkouts/gnu/emacs/emacs.html, last accessed 02/12/2022 3.4. Liquid XML Studio IDE 40 The downside for this tool is that is as simple as it gets. Only one file can be shown and edited at a time, making it hard to edit XML, XSD/DTD and XSL files. The fact we only get a development environment, lacking any kind of document visualization, makes this tool great for pure-XML writing but no so much for XSL integration, testing and debugging. 3.4 liquid xml studio ide Classified as "Best for beginners" (Help,2022), Liquid XML Studio IDE4is an application that focuses on providing the user with the most helpful features in an XML Development environment. This software has an effective user interface, making it easier for users to work on it for long hours. The application also has features like split graphical and text view, making it easier to generate and supervise file transformations. Liquid XML Studio IDE offers a wide range of features: • XML editing and visualizing in tabular and tree grids for better code presentation • Validates XML code against XML Schema • Splits graphical and text views for better code management • Syntax highlighting • Multi-file editing • Equipped with a real-time spell-checking feature • Has an XML Sample Generator, allowing users to generate samples from the provided XML Schema • Enhanced document formatting • Auto-complete feature to complete the primary code section or provide suggestions This tool is only available on Windows systems as a stand-alone app, available to download on Liquid’s website. According to (Kiarie,2022), the most popular Operating System is still Windows accounting for around 72% of the desktop and laptop market. Even so, considering the desired tool should be available to everyone at anytime, this represents a restraint on the user’s end, which is undesired. Liquid XML Studio IDE is available for a free trial for 15 days after the initial activation. After this time the software will keep on operating as the Free Community Edition, which is 4https://www.liquid-technologies.com/xml-studio, last accessed 02/12/2022 3.5. Stylus 41 still a very powerful tool for beginners to use and learn from. The premium versions of the software cost between 139€and 719€. This tool is definitely one of the best (if not the best) seen so far in this report in the scope of this project. However, when looking at the user-interface and the amount of available options and features, an inexperienced user would be a little bit overwhelmed. At the same time it reduces dramatically the XML-learning-curve, Liquid XML Studio IDE requires that the user learns how to use a software that has so much to offer that is becomes too much for a beginner. A simplified, available as a web-app version of Liquid XML Studio IDE would be the ideal platform for a beginner to learn XML and the previously explained surrounding concepts. 3.5 stylus Stylus 5 is an IDE for XML, considered by (Help,2022) the best for support generator, with features like: • Equipped with XML Parsing and validation architecture, making it easier for users to work along with XML Schema. • Has a DTD validator that runs code against XML schema and ensures code efficiency. • The self-indenting feature allows users to easily indent their code and enhance the presentation of their code. • This tool is canonicalized and converts code into W3C canonical form, making it easier to understand and debug. • In-built XML sample generator, making it easier for users to run through XML code and generate the most effective results. • The folding code feature of this application allows users to code quickly. • Equipped with a series of document wizards which allow users to extract data from various databases and files. • The project window is integrated with source control systems and makes coding easier. • Equipped with a Stylus studio and spell checker, allowing users to indent and check code quickly. • This tool has an XML notepad to create a prototype of XML codes. 5http://www.stylusstudio.com/xml-download.html, last accessed 06/08/2023 3.12. XMLmind 48 • Powerful XPATH Builder • Multiple criteria research (attribute, element, namespace...) • Project Management • Fully Customizable (User Preference, Application Descriptor) • Open XML Format Editor • Refactoring (Elements, Attributes, Schema Type, Template Name, Variables and Parameters) • Visual Schema Editor • Schema Generator (DTD, W3C XML Schema) from XML Documents • Multiple Search File (with XPath) • XML Instances generated by W3C Schema or DTD • XML Differencing • Convert DTD and XML Schema Editix has a bit of a clustered UI with many file managing operations available in the top of the software’s UI with a large set of icons. This software would benefit from a cleaner presentation, specially considering the fact that the XML work menus are really well-organized. Editix offers two types of licenses: a Professional edition with prices ranging between 99$ and 379$ and an Academic edition with prices ranging between 39$ and 699$. The only free version available is a 30-day free trial. This tool is available on Windows, Linux and MacOS as a stand-alone app. Despite being a bit clustered with the file operation icons, the UI on this tool is one of the best seen so far in this report. With separate drop-down menus for each XML or XSL component, it’s easy to understand where-is-what. Featuring a file explorer, a tree view for the selected document and a text view to edit the document, this software has a really clean and easy-to-use UI that still allows for customization. The user can add panels for XSLT, XPath, XQuery, XML Schema and DTD editing, validation and debugging. 3.12 xmlmind XMLmind 12 is a tool that provides a lot of very useful features, either for publishing, coding or validating XML Documents. 12 https://www.xmlmind.com/xmleditor/, last accessed 06/08/2023 3.13. Code Beautify 49 Here are some of the most interesting features XMLmind offers: • Supports DTD, W3C XML Schema & XSLT • XML to HTML-based formats and PDF conversion • Strictly validating, schema-directed editing (ensures the document is always valid) - It CAN NOT open non-well formed documents • Styled View, Tag View, Tree View and Source View (No Grid View) • As-you-write spell checking The complete list of features can be found in XMLmind’s website. This software is available for free for personal and open-source use. Other licenses can be purchased with prices ranging from 130€to 30000€.XMLmind is available as a stand-alone app for Windows, MacOS and Linux. This tool features a very clustered and confusing UI and lacks support for very important components of the XML Family like XPath. Despite having a great number of features, most of them are focused on the publishing phase of XML Development. This tool provides many features but it is not designed for an inexperienced user. 3.13 code beautify Code Beautify 13 offers many different and useful tools for various purposes. It’s a web-app with over one hundred and fifty tools like Unit and Format Converters, Web Viewers and Editors, Programming Editors, Cryptography tools, Validators, and many others. For XML Development, Code Beautify offers the following features: • XML Converter to JAVA, JSON, YAML, CSV, TSV, HTML and Excel • XML-XSL Transform • XML Viewer and Editor • XPath Tester • XML Validator (does not mention DTD or XSD) It’s easy to notice the lack of validation tools following DTD or XML Schema Definition, but nearly every other component of the XML Development Family is supported in this web-app. Also, the fact that there are so many features and tools in this app makes it hard to know where-is-what and by separating the relevant XML features instead of grouping them 13 https://codebeautify.org/, last accessed 08/12/2022 3.14. Online XML Tools 50 and treating each programming or annotation language as separate work environments, this tool gives the impression of a very unorganized work environment. Being an online tool, it servers one of the main goals of the proposed tool of this project by being available to any user at any time and by being a free-to-use tool. To use any of the previously described tools, the user just has to visit the Code Beautify website and search for the intended tool. 3.14 online xml tools Online XML Tools 14 offers a series of XML utilities that are very useful in the context of XML Development: • XML Prettifying and Minifying • XML Validation • XML Syntax Highlighting • XML Converter to Image, JSON, CSV, YAML, TSV, Base64 and Plain Text • XML Editor All of the above are very intuitive to use, just like the app itself. However, there is a clear absence of DTD, XSD and XSL support. This tools offers no auto-completion, no automatic XML generation, no DTD or XSD Validation, no XPath evaluator or tester and no XSLT editing, debugging or preview. It is a free-to-use web-app, which makes this tool accessible to all users. Despite being really intuitive, having a very clean UI, a very organized workflow and being highly available, this tool lacks support for too many important components of the XML Family, making it a very incomplete solution for XML Development, even when used for learning purposes. 3.15 xmlnotepad XMLNotepad 15 is an open-source XML editor that offers a great UI that features in itself a text and a tree view of the document, an XSL preview tab and XSD validation. Since this is an open-source and free-to-use app, let’s test it with the CD Catalog example file used previously, as well as the associated stylesheet. To test this, we’ve stored both files on the same directory and opened the XML document with XMLNotepad. 14 https://onlinexmltools.com/, last accessed 06/08/2023 15 https://microsoft.github.io/XmlNotepad/, last accessed 06/08/2023 3.15. XMLNotepad 51 On the software’s starting page, after loading a file, the user gets the document tree and text editor area to edit the content of elements and attributes (see Figure 10). To change the order of elements, the user can drag and drop the tree nodes around as it pleases. However, to change the order of the elements, to add an element or an attribute, the user can only do it with the drop down menu "Insert", and it will insert either an element, an attribute, text, a comment, CDATA or a processing instruction which the user can edit. It is not possible to write code in this editor. Editing is a visual and graphical task instead of being a text one. The user can only edit content and can not edit the structural part of the document. Figure 10: XMLNotepad’s Main View The page shown in Figure 11 allows the user to generate a preview of the XML Document, styled as it should by the referred stylesheet and generate an .htm file that can be previewed in any browser, with the resulting XSL Transformation of the XML Document. It is not very practical, considering the user can’t edit the stylesheet on the software. Any changes have to be made using another tool or software which makes working on XSLT very inefficient. 3.16. NotePad++ 52 Figure 11: XMLNotepad’s XSL Preview and Output Despite having an intuitive UI and being free-to-use, in this software: code editing is non-existent, XSLT editing is non-existent, working with XML Schema is just as inefficient as working with XSLT, DTD is non-existent and the XPath evaluation tool is hidden within the "Find" option, usually used to find content by text or regex. 3.16 notepad++ NotePad++ 16 is a free-to-use text and source code editor that supports syntax highlighting, code formatting, code folding and minor auto-completion for programming, scripting and markup languages (Ghimire,2022). Despite being really easy to use and having a really understandable UI, NotePad++ does not feature code completion or syntax checking. Some XML Tools can be added to NotePad++ for editing XML Documents like the "XML tools" plugin, which can be found in the available plugins in the software’s extensions list. 16 https://notepad-plus-plus.org/, last accessed 06/08/2023 3.17. Visual Studio Code 53 This plugin provides XML, XSD and DTD validation by checking for format and syntax. It also supports XPath expression evaluation. The native version (without plugins) alone, offers very little support to XML editing, besides syntax highlighting, code formatting and code folding. When analyzing how a beginner would use any of these tools, it is not convenient that the user should have to search for plugins and install them in order to user the given software or platform to learn the basics of XML. The user should be able to focus only on XML (and the XML Family) and not have to worry about searching for plugins or extensions. The "XML tools" plugin solves part of the lack of XML support but it is still not the best response for a complete XML Development Environment. Features like different document views, XSLT editing and preview, auto-completion for coding, etc. are all missing from this software. 3.17 visual studio code Visual Studio Code 17 is arguably the most popular code editor today. It is free to use and available in Windows, Linux and MacOS. It offers a great UI and code editor for many different programming, scripting and markdown languages. To use Visual Studio Code as an XML Editor, the user should install plugins to allow for syntax highlighting, a very good auto-completion for coding and some other tools like XPath evaluation and Text to XML Conversion (and vice-versa). Visual Studio Code falls into the same problems other multi-language editors fall into. It does not offer great support on some features that are key to they XML Development Environment like XSLT preview, different document views, XSD or DTD Validation, etc. 3.18 research summary After going over the most popular XML Development Environments available and analyzing what makes each of them a good or a bad option for beginners to use as a learning platform, it’s now time to define the system requirements, both functional and non-functional, for the tool proposed by this report, compare the previously analyzed tools and see how they perform on the defined requirements. Let’s start by defining a list of requirements: 1. XML Code Editor 2. XML Syntax Highlighting, Auto-Completion and Code Folding (Editing features) 3. XML Document Views: Text, Dev (Text + Annotations) and Tree. 17 https://code.visualstudio.com/, last accessed 06/08/2023 3.18. Research Summary 54 4. XML Well-Formed Check 5. XML Validator according to XSD or DTD 6. Random XML Documents Generator according to XSD or DTD 7. XSD Code Editor 8. DTD Code Editor 9. DTD to XSD Converter 10. XSLT Editor 11. XSLT Preview 12. XPath Evaluator 13. High Availability (Web-App) 14. Price 15. Intuitive and simple UI/UX In order to determine how good the previously analyzed tools are at satisfying this project’s requirements, an evaluation system must be put into place to compare these tools. To have this evaluation system, the evaluation criteria must be defined. For each requirement, let’s define levels of satisfaction and the sum of all these grades will be the final evaluation for each IDE, editor or toolbox. The evaluation criteria that will be used is defined in Table 5. Requirement Criteria 1. XML Code Editor 0if absent 1if present 2. XML Syntax Highlighting, Auto- Completion and Code Folding 0if none present 1if 1is present 2if 2are present 3if all are present 3. XML Document Views: Text, Dev (Text + Annotations) and Tree 0if none present 1if 1is present 2if 2are present 3if all are present 4. XML Well-Formed Check 0if absent 1if present 5. XML Validator according to XSD or DTD 0if none present 1if only one present 2if both present 3.18. Research Summary 55 6. Random XML Documents Generator according to XSD or DTD 0if none present 1if only one present 2if both present 7. XSD Code Editor 0if absent 1if present 8. DTD Code Editor 0if absent 1if present 9. DTD to XSD Converter 0if absent 1if present 10. XSLT Code Editor 0if absent 1if present 11. XSLT Preview 0if absent 1if present 12. XPath Evaluator 0if absent 1if present 13. High Availability (Web-App, Windows, Linux, MacOS) 0if available only on 1OS 1if available only on 2OS 2if available on all 3ma- jor OS 3for WebApp 14. Price 0(Most Expensive) to 4(Free) 15. Intuitive and simple UI/UX 0to 10 Table 5: Evaluation criteria for XML Editors, IDEs and Toolboxes Considering the fact that some of these tools are really expensive and weren’t tested, there’s no way to know if some of the requirements are fulfilled or not by that tool. When this happens, instead of assigning a grade to the requirement, a null value will be assigned. In this case, the final grade will be an interval instead of a single integer, where the minimum will be the sum of all defined grades added to the minimum value of all null-defined grades and the maximum will be the sum of all defined grades added to the maximum value of all null defined grades. When evaluating the pricing of each product (and considering most of the analyzed products have wide price ranges) the considered price will be the lowest available for that specific piece of software and every other requirement will be analyzed according to the cheapest version available. Also, for code editors that need plugins or extensions to support XML, this report will consider their basic installation (without any add-ons) since an inexperienced user should not have to worry about searching and installing plugins to work and learn XML. Next, this report will show table with the evaluation of each product against the previously listed requirements and that product’s final score when tested against the proposed features. These requirements are the ones intended for the tool proposed by this report. After evaluating every product and seeing which one satisfies this project’s goals the most, this report will show a comparison between the "best" solution available and the intended solution. 3.18. Research Summary 56 Table 6presents the evaluation of every IDE, Code Editor or Toolbox analyzed in this section against the intended features for the proposed tool. Requirements Software 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Total Oxygen 1 3 -1 2 0 0 0 0 1 1 1 2 2 7 [21-24] Code Browser 1 0 3 0 0 0 1 1 0 1 0 0 1 4 3 15 Emacs 1 2 1 1 1 0 1 1 1 1 0 0 2 4 7 23 Liquid 1 3 3 1 1 1 1 1 0 1 1 1 0 4 5 24 Stylus 1 2 3 1 2 1 1 1 1 1 1 1 0 1 5 22 Komodo 1 3 1 0 0 0 1 1 0 1 1 0 2 4 8 23 Kate 1 1 1 0 0 0 1 1 0 1 0 0 2 4 10 22 XMLGrid 1 0 3 1 2 0 0 0 0 0 0 1 3 4 2 17 XMLSpy 1 2 3 1 1 0 1 0 0 1 1 1 0 0 5 17 ExtendsClass 0 0 0 0 1 0 0 0 0 0 0 1 3 4 7 16 Editix 1 2 2 1 2 1 1 1 1 1 1 1 2 3 8 28 XMLmind 1 1 3 1 2 0 1 1 0 1 0 0 2 4 4 21 Code Beautify 1 0 1 1 0 0 0 0 0 0 1 1 3 4 7 19 Online XML Tools 1 1 1 1 0 0 0 0 0 0 0 0 3 4 8 19 XMLNotepad 0 0 2 0 1 0 0 0 0 0 1 1 0 4 9 18 NotePad++ 1 2 1 0 0 0 1 1 0 1 0 0 0 4 5 16 VSCode 1 1 1 0 0 0 1 1 0 1 0 0 2 4 10 22 Table 6: XML Editors and IDEs Evaluation Analyzing the table above, Editix stands out as the best evaluated tool, followed by Liquid and Oxygen, and it is quite simple to understand why it does. Unlike any of the other analyzed tools, Editix features every functional requirement listed in this report, even though some of them are not present at their full extension. Editix offers XML, XSD, DTD and XSLT Code Editors, XPath Evaluation, Syntax Highlighting and Code Suggestions, Dev and Tree Views, Random XML Generator according to XSD, DTD to XSD Conversion, XSLT Preview and it is available on the three major Operating Systems at a relatively low price when compared to others in this report. Figure 12 shows the results of comparing Editix with the proposed tool, which should feature every listed requirement. 3.18. Research Summary 57 Figure 12: Editix vs Proposed Tool Analyzing the difference between Editix and the proposed tool, the code editing features, document view modes, availability, price and UI/UX are what separates the already existing best option available from the tool this projects proposes. CODE EDITING FEATURES -Editix offers good syntax highlighting and code suggestions. The proposed tool should offers these features and feature the possibility for code autocompletion. This is a feature that massively reduces the amount of necessary coderside work and keystrokes. Exceptional when the user is inexperienced and specially considering the fact that XML Elements have starting and closing tags, this feature is key to ensure coding and learning is easy for the inexperienced XML user. DOCUMENT VIEW MODES - Despite the fact that the Text View is somewhat present in the Dev view (Text + Annotations), Editix does not offer the possibility to view a document in it’s text-form, which is something the proposed tool should be provide. The text view is very important when teaching XML to new users since it offers a chance of viewing an XML document’s content, prior to any transformation, in a simpler way. AVAILABILITY AND PRICE -Editix is available on the three most used operating systems. However, it still requires the user to download and install software, taking disk space and system resources to run. This project proposes a webApp to take the burden of running the software from the user’s system, as well as eliminate all together the need for download and installation procedures. UI/UX - Despite being a really organized tool when looking at the XML Work Environment Tools, Editix still features a confusing toolbar with many file managing, publishing 4.2. Use Cases 64 4.2.3Convert DTD to XSD Table 9shows the Use Case Definition for Converting DTD to XSD. This action can be performed by any user and requires only that the specified DTD is valid. Performing this action should result in a valid XSD file that specifies the same rules as the specified DTD file. Use Case 3. Convert DTD to XSD Actor User Precondition Input DTD is valid Post Condition Results in a valid XSD Normal Scenario Actor Input System Response 1. Requests DTD to XSD conversion 2. Converts DTD to XSD 3. Presents the user the resulting XSD Table 9: UCD - 3. Convert DTD to XSD 4.2. Use Cases 65 4.2.4Previewing XSLT Transformations Table 10 shows the Use Case Definition for Previewing XSLT Transformations. This action can be performed by any user and requires the XML Document to be well-formed and the XSLT Stylesheet to be valid. Performing this action should result in a preview of the transformed XML Document following the specified stylesheet. Use Case 4. Preview XSLT Transformations Actor User Precondition XML Document is well-formed and XSLT Stylesheet is valid Post Condition Transformed XML Document is presented Normal Scenario Actor Input System Response 1. Request a preview of the transformed XML Document 2. Checks if XSLT is specified in XML Document 3. Transforms XML Document into HTML-like output 4. Presents the HTML-like generated output Alternative Scenario 1 [XSLT is not specified in XML Document] (Step 2) 2.1Notify user that XSLT is not specified in XML Document 2.2Suggests code to specify XSLT in XML Document 2.3Edits XML File to specify XSLT Table 10: UCD - 4. Previewing XSLT Transformations 4.2. Use Cases 66 4.2.5Test XPath Expressions Table 11 shows the Use Case Definition for Testing XPath Expressions. This action can be performed by any user and requires only that the XML Document is Well-Formed. Performing this action should result in a display of the query results to the user. Use Case 5. Test XPath Expression Actor User Precondition XML Document is well-formed Post Condition Presents result of applying XPath Query on the XML Document Normal Scenario Actor Input System Response 1. Writes na XPath Expression 2. Checks if XPath Expression is valid 3. Applies XPath Query on XML Document 4. Presents Query Results Alternative Scenario 1 [XPath Expression is invalid] (Step 2) 2.1Notify user that XPath Expression is invalid 2.2Edits XPath Expression to be valid Table 11: UCD - 5. Test XPath Expression 4.3. Design Mockups 67 4.2.6Generate XML Documents according to DTD or XSD Table 12 shows the Use Case Definition for Generating XML Documents from a DTD or XSD. This action can be performed by any user and requires only the specified DTD or XSD to be valid. Performing this action should result in the user being presented a random well-formed XML Document that is valid against the specified DTD or XSD. Use Case 6. Generate XML Documents according to DTD or XSD Actor User Precondition DTD or XSD is valid Post Condition XML Document is well-formed and valid against DTD or XSD Normal Scenario Actor Input System Response 1. Requests for a random XML Document that is valid against given DTD or XSD 2. Generates Random XML Document valid against DTD or XSD 3. Presents the user with the generated XML Document Table 12: UCD - 6. Generate XML Documents according to DTD or XSD 4.3 design mockups In order to make it ease understanding the tool’s purpose and features, this section contains the mockups for the proposed web-app. These mockups are not supposed to serve as a restraint on the final design for the web-app, but as a guide and a visual representation of the tool’s features, intended interface simplicity and usability. 4.3.1XML Editor The first mockup (see Figure 15) shows the app’s XML Editor. This editor will always be presented to the user, taking the left side of the screen. Here’s how the XML Editor will be presented: 4.3. Design Mockups 68 Figure 15: Mockup XML Editor In the image of Figure 15, it’s possible to identify a few elements: FILE NAME - A form that allows the user to define the name for the XML file VIEW MODE SELECTOR - A drop-down menu that allows the user to choose the view mode for the document: dev, text or tree. XML CODE EDITOR - Standard code editor with syntax highlighting, allows for code folding and offers auto-completion. WELL-FORMED XML CHECK - Visual indicator for the well-formation of the document This editor and all of the previously described components will be presented to the user alongside every other component of the XML Family seen so far in this report. In the next subsections, the mockups for all pages will be presented and described. Each page allows the user to work with XML and a single component of the XML Family. 4.3. Design Mockups 69 4.3.2DTD Editor and Tools The mockup for the DTD Editor and Tools page of the proposed app is presented in this section. The left side of the screen is taken with the XML Editor described previously and the right side is a DTD workspace with some components that will be described later. Figure 16 contains the mockup for the DTD Editor and Tools page. Figure 16: Mockup DTD Editor and Tools Since the components of the XML side of the web-app have been described previously, let’s focus on the components on the DTD workspace: WORKSPACE SELECTOR - In this case, the DTD workspace is active but the selector allows the user to change workspaces in just one click. FILE NAME - Allows the user to define a name for the DTD file. DTD CODE EDITOR - Code Editor where the DTD is defined. DTD VALIDATOR - Checks if the DTD defined in the code editor is valid. DOCUMENT VALIDATOR - Checks if the XML Document on the XML Code Editor is valid against the defined DTD. 4.3. Design Mockups 70 CONVERTER - Takes the specified DTD and converts it to a XML Schema Definition GENERATOR - Takes the specified DTD and generates an XML Document that is valid against the same DTD, with random values for it’s elements. 4.3.3XSD Editor and Tools The mockup for the XSD Editor and Tools page of the proposed app is presented in this section. The left side of the screen is taken with the XML Editor described previously and the right side is a XSD workspace with some components that will be described later. Figure 17 contains the mockup for the XSD Editor and Tools page. Figure 17: Mockup XSD Editor and Tools Since the components of the XML side of the web-app have been described previously, let’s focus on the components on the XSD workspace: WORKSPACE SELECTOR - In this case, the XSD workspace is active but the selector allows the user to change workspaces in just one click. FILE NAME - Allows the user to define a name for the XSD file. XSD CODE EDITOR - Code Editor where the XSD is defined. 4.3. Design Mockups 71 XSD VALIDATOR - Checks if the defined schema in the code editor is valid. DOCUMENT VALIDATOR - Checks if the XML Document on the XML Code Editor is valid against the defined XML Schema. GENERATOR - Takes the specified DTD and generates an XML Document that is valid against the same XML Schema Definition, with random values for it’s elements. 4.3.4XSLT Editor and Tools The mockup for the XSLT Editor and Tools page of the proposed app is presented in this section. The left side of the screen is taken with the XML Editor described previously and the right side is a XSLT workspace with some components that will be described later. Figure 18 contains the mockup for the XSLT Editor and Tools page. Figure 18: Mockup XSLT Editor and Tools Since the components of the XML side of the web-app have been described previously, let’s focus on the components on the XSLT workspace: WORKSPACE SELECTOR - In this case, the XSLT workspace is active but the selector allows the user to change workspaces in just one click. 4.3. Design Mockups 72 FILE NAME - Allows the user to define a name for the stylesheet definition file. XSLT CODE EDITOR - Code Editor where the XSD is defined. XSLT VALIDATOR - Checks if the defined schema in the code editor is valid. TRANSFORMER - Takes the XML Document defined on the left side of the page and transforms it using the transformations defined in the stylesheet specified in the XSLT Workspace. OUTPUT PREVIEW - Presents the user with the transformed XML Document in an HTML Preview. 4.3.5XPath Tester The mockup for the XPath Tester page of the proposed app is presented in this section. The left side of the screen is taken with the XML Editor described previously and the right side is a XPath workspace with some components that will be described later. Figure 19 contains the mockup for the XPath Tester’s page. Figure 19: Mockup XPath Tester 4.4. Summary 73 Since the components of the XML side of the web-app have been described previously, let’s focus on the components on the XPath workspace: WORKSPACE SELECTOR - In this case, the XPath workspace is active but the selector allows the user to change workspaces in just one click. XPATH EXPRESSION FORMS - This is where the user will write XPath Expressions. XPATH VALIDATOR AND TESTER - The user won’t be able to run the XPath expression if the given expression is not valid. If the expression is valid, the "Run" button will text the epxpression on the XML Document defined in the XML Workspace. XPATH TEST RESULT - Presents the user with the result of applying the queries on the XML Document. EXTRA - This page could have a simple cheat-sheet with some common predefined XPath functions. 4.4 summary The Use Cases presented in Section 4.2define how the user interacts with the system while the Mockups presented in Section 4.3will serve as guidelines for building the graphical interface for WebXMLIDE. The next stage in this project is to plan the development of this web application based on the strategies and guidelines defined in this Chapter. 5.2. Development Plan 80 The XML-MIDDLE section will contain one single component called XMLEditor. This is where the XML Code Editor (built with CodeMirror) will appear. The XML-BOTTOM section will contain two components: XMLHints and XMLStatus. The first will provide shortcuts for the XML Code Editor to the user, while the second will present to the user if the XML Document is Well-Formed or not (and why it isn’t). companyside The CompanySide component will be divided into two sections: Company-TOP and Company-MIDDLE-BOTTOM (see Figure 22). Figure 22: CompanySide The XML-TOP section will contain two sections: Selectors & File Name and File Upload and Download. The first will contain a selection menu for the user to choose between working with DTD, XSD, XSLT or XPath and a text input where the user can write the desired file name for the DTD, XSD or XSLT file. The second section will contain two buttons, allowing the user to upload DTD, XSD or XSLT files to the editor or download the current file to the file system. Both file name input and file management sections are disabled for the XPath editor. The XML-MIDDLE section will contain one of four components (depending on what the active selector is on the Company-TOPs Selector section): DTDComp,XSDComp,XSLTComp or XPathComp. Each of these is described in the next sections. dtdcomp &xsdcomp The DTDComp and XSDComp components will be presented together as they are very similar. Both of these components contains three components within itself: an Editor 5.2. Development Plan 81 component (DTDEditor and XSDEditor), a Status component (DTDStatus and XSDStatus) and an Actions component - DTDActions and XSDActions (see Figure 23). Figure 23: DTDComp & XSDComp The three components contained in both DTDComp and XSDEditor have the following purposes: DTDEDITOR AND XSDEDITOR - This is where the code editors will be mounted on. DTDSTATUS AND XSDSTATUS - This is where the system will inform the user if the given DTD/XSD is valid and if the XML Document on the XMLSide is valid against the given DTD/XSD. DTDACTIONS AND XSDACTIONS - The DTDActions component will give the user the options to convert the given DTD to a XSD file and to generate an XML Document (with random data) based on the given DTD and valid according to it. The XSDActions component only offers the latter. xsltcomp The XSLTComp will contain four components: XSLTEditor,XSLTStatus,XSLTActions and XSLTPreview (see Figure 24). 5.2. Development Plan 82 Figure 24: XSLTComp The XSLTEditor is where the CodeMirror code editor will appear. The XSLTStatus informs the user if the given style sheet is valid. The XSLTActions allows the user to update the content presented in XSLTPreview, which shows the result of applying the transformations defined in the XSLT file to the XML Document in the XMLSide. xpathcomp The XPathComp will contain four components: XPathEditor,XPathOutput and XPath- Hints (see Figure 25). Figure 25: XPathComp 5.2. Development Plan 83 The XPathEditor component will be a text input where the user can write XPath expressions and run them on the XML Document in the XMLSide. The XPathOutput will present the user with the result of running the given XPath expressions on the XML Document. 5.2.2Final Architecture for the Web Application The block diagram in Figure 26 showcases in detail the final architecture for the Web Application. Figure 26: Detailed Architecture for the Web Application 5.2. Development Plan 84 As can be observer in Figure 26, the showed diagram contains 6different blocks: USER - The actor will interact with the system by providing an input and receiving an output in return. INPUT - The input provided by the user can be XML, DTD, XSD or XSLT Code, as well as XPath expressions and file names. OUTPUT - The output given to the user can differ depending on the given input. This output may consist of files (if the user wants to download the files), syntax or validation errors, XSLT previews or the results from running XPath queries. FRONT-END APPLICATION - The front-end application block represents the Vue App and all its components. This block shows the structure of the components inside the application. BACK-END SERVER - The back-end server block represents the Node.js server used to process code and execute the XML-related features. STORE - This block represents the vuex-persistedstate object which will act as a state recorder and loader. 5.2.3Requirements and Features This section presents a deeper analysis and specification of the system’s features presented in Section 4.2. It also contains the specification for technical requirements that are not specific to one of the previously mentioned features but are key to the users quality of life. 5.2.3.1Technical Requirements The technical requirements for this project represent the features needed to fulfill the functional objective for the proposed application. Things like code editors and their corresponding features, components used to provide information to the user, buttons used to trigger server-side actions, etc. code editors CodeMirror provides amazing and easy-to-build code editors for editing XML, DTD, XSD and XSLT files. This library also has a few add-ons and plugins that could be used in this project to fulfill the goal of making these code editors beginner-friendly and easy-to-use. For the XML-syntax-based languages (XML, XSD and XSLT), the code editors should offer syntax highlighting, code suggestions and auto-completion. All of these are easily implemented using CodeMirror’s add-ons. When it comes to DTDs, however, there is no support for code 5.2. Development Plan 85 suggestions or auto-completion, but syntax highlighting is still available at a very high level in quality. status checkers Status should be visible to the user at all times and be responsive to the user’s input. With this in mind, we can define we want to know the status of the editor’s files (if they’re well-formed, if they’re valid, and so on) as the user is typing, meaning the status should be checked at every change made to the documents. The status we want to present the user are the following: FILE NAME VALIDITY - The names for the files in the editors should not contain certain characters and should always have the right file extension at the end of the file name. The testing for this status will be made client-side by the Vue.js application. XML WELL-FORMED - This status checker will take the XML code in the respective editor and send a request to the Node.js server, which will respond back with information regarding to the well-formed status of the provided code. If the given XML is not well-formed, it will also send a list of errors and present them to the user. DTD, XSD & XSLT SYNTAX CHECKERS - These syntax checkers will inform the user if the given DTD, XSD or XSLT code is syntactically correct. The parsing process will be done in the Node.js server by sending it a request the given code and checking if any errors occur during the parsing process. It is important to inform the user if the syntax is correct but it is also important to be able to present the user the errors (if they exist) found in the parsing process. XML VALIDITY CHECKER AGAINST DTD/XSD - This validation process will be made in the Node.js server by sending it a request with the XML code, the DTD or XSD code and the given DTD or XSD file name. The validation can have many different outcomes: XML and DTD/XSD are not linked, the link between the two files is incorrect, XML does not follow a correct DTD/XSD, XML is not well-formed (so it can’t be validated), DTD/XSD is not syntactically correct, and finally, XML is valid against the given DTD/XSD. All of these possible errors should be visible to the user so that fixing these issues becomes easier. actions In this specific case, actions should be considered as the events the user can trigger from the system’s UI. 5.2. Development Plan 86 There are four actions associated with the XML work environment discussed in this report that should be considered in the development stage for this project: CONVERT DTD TO XSD - When this action is triggered, the system should take the DTD code in the DTD Editor and run it through Trang (see section 5.1.8) as the input argument, and should get as an output the converted XSD file. Taking the resulting XSD file, the system should change the displayed editor from DTD to XSD, changing the content of the XSD editor to the content of the output file and the filename to the resulting filename from the conversion (which will be the file name for the DTD, replacing the .dtd extension with the .xsd extension). During this process, the DTD should be preserved, but the state persistence will be further discussed in a following section. GENERATE XML FROM DTD OR XSD - When this action is triggered on either the DTD or XSD page, the system should take the DTD or XSD code and generate XML code that is valid against the given DTD or XSD, and well-formed. After generating the code, it should change the content of the XML editor to the resulting XML code. GENERATE XSLT PREVIEW - This action will take the code in the XSLT editor and the XML code in the XML Editor and generate an HTML preview that will be presented to the user. If there are any errors found in either the XSLT or XML Code, these errors will be shown instead of the HTML Preview. RUN XPATH EXPRESSIONS - This action will take the XML code and the given XPath Expression and test the expression on the document, returning the results or the errors that may occur during the testing process to the user. file management Last but not least in this section, the user must have the ability to manage files. FILE UPLOAD AND DOWNLOAD - Every code editor (XML, DTD, XSD and XSLT) should allow for the user to upload a file replacing the value in the file name with the name of the uploaded file, and replacing the content in the editor with the content from the uploaded file. The user should also be able to download the content in each editor to its own file system. This download procedure should take the file name defined in the editor and set it as the name for the downloaded file. PROJECT UPLOAD AND DOWNLOAD - The user should be able to upload or download a project as a whole (meaning, every piece of content in each editor should be downloaded or uploaded as one). This process should work as a .zip upload and download. When uploading, the user should select a zip containing the project files inside a src folder 5.2. Development Plan 87 and an XML manifest that should inform the system on which of the files corresponds to the each of the systems components. For example, the manifest can state that the uploaded project only has files for the XML and DTD editors, discarding any other files uploaded with the.zip. When downloading a project, the system should show the users with a forms allowing them to select which files they want to download (XML, DTD, XSD and/or XSLT) and a name for the project. When the user is done choosing which files to download and the project name, the system should download a .zip folder containing the XML manifest and a src folder containing the files specified in the manifest. 5.2.3.2Quality of Life Improvements This section presents a few features that are not necessary to the system’s functionality, but are key to improving user experience and achieving the goals for this project to make the IDE easy-to-use and beginner-friendly. state persistence State persistence means the system should maintain the user’s work until the moment the user changes that given state. Let’s say the user is working on a DTD, writing DTD in the given editor and decides to test some XPath Expressions or go back to the XSD editor and revisit a previously defined schema. The user should never lose the content on the DTD component when changing the active component. This also applies to when the user closes the tab in which the IDE is open. When the user closes the IDE, it should maintain the state so that, when the user returns, the previous work is still available. This state persistence should be applied on the content of the different code editors, the file name inputs for every component, the XPath expressions and results and the XSLT preview. Reducing the amount of work the user has to put into place every time the user enters or leaves the page is key to making the user experience enjoyable. State persistence is a viable solution to fix this problem, especially considering vuex and vuex-persistedstate. documentation page The system should also offers the user with a Documentation Page with links to detailed tutorials and documentation guides on XML, DTD, XSD, XSLT and XPath. 5.3. Development Process 88 keyboard shortcuts In each code editor, the user should have the ability to use some shortcuts to reduce the amount of work and mouse usage when working with the IDE. Some of the actions that should be allowed with these shortcuts are: 1. Adding XML Declaration (XML-syntax-based languages) 2. Get a Code Suggestion 3. Auto-Indent 4. Code-Folding/Unfolding It is important to notice that CodeMirror offers the special-keys feature to enable shortcuts and defining actions for these shortcuts, which makes defining these shortcuts much easier. 5.3 development process This section presents the results from the development process following the planning process described in the previous section. This section presents the final system architecture as well as the implementation for the projects proposed features. 5.3.1Features Implementation code editors The four proposed code editors for XML, DTD, XSD and XSLT have all been built using CodeMirror 5. The XML, XSD and XSLT code editors were built using CodeMirrors XML mode, which offers high-quality syntax highlighting to XML-syntax based languages. These code editors also have the ability to provide suggestions. As it stands, the editor can only provide information on the tag the user is supposed to close next, which is still a big help when writing XML Documents, Schemas or XML stylesheets, especially for non-experienced users. Code suggestions on CodeMirror is Schema-based. This means the code suggestion mechanism put into place in the XML Editor could be further developed to match the defined schema on the XSD or DTD editors. These editors also allow for code folding and auto indentation. 5.3. Development Process 89 The DTD Editor was built using CodeMirrors DTD mode, which is a bit incomplete but still good enough to allow the user to quickly understand the DTD code. Code folding and auto indentation are also available but code suggestions are not. Overall, using the resulting code editors feels intuitive and offers a smooth user experience. This feature was successfully accomplished. status checkers Status checkers were implemented using a combination of Front-End and Back-End operations reacting to the users input as it happens. This makes it so that every state of the users input is tested and the result of checking for its status is shown on every input change. FILE NAME VALIDITY - Checking if the file contains the right file extension and contains any invalid filename characters was accomplished using regular expressions on the Clientside application (i.e., the Vue App). If the file fails this validity test, the user will be informed on the current problem on the input filename. A quick example is shown in Figure 27. Figure 27: Invalid File Name Warning If the user inputs a valid filename that ends with the correct file extension, that information is also shown, helping less experienced users to always take this into consideration when using any of the available editors, as shown in Figure 28. Figure 28: Invalid File Name Warning XML WELL-FORMED - When the user changes the code in the XML Editor, the Vue app sends a POST request to the Node.js server on route ’/xml-wellformed’ with the current XML code. When receiving the request, the server will take the XML code and pass it on to the XML parser from node-libxml (see Subsection 5.1.6). This parser can take XML 5.4. Development Summary 96 keyboard shortcuts Using CodeMirrorsspecial-keys feature, the user can now perform the following actions: 1. Press Alt+X to add the XML Declaration at the top of the document (XML-syntax-based languages) 2. Press Ctrl+Space to get a code suggestion 3. Press Alt+I to auto-indent at cursor level 4. Press Alt+Q to fold/unfold code at cursor level 5.4 development summary This Chapter presented the many different technologies used in this project, from prototyping with Django (see Subsection 5.1.1), to building the final application with Vue.js (see Subsection 5.1.2), and Node.js (see Subsection 5.1.3), along with many different JavaScript libraries (see Subsections 5.1.4,5.1.5,5.1.6, and 5.1.7), and other utilities like Trang (see Subsection 5.1.8). After presenting the technologies that would be used in this project, it was necessary to take in consideration the Design Mockups from Section 4.3to plan the Vue.js Components to be implemented in the final application (see Subsection 5.2.1). The Use Cases defined in Subsection 4.2served as the foundation for the System Architecture presented in Subsection 5.2.2. The last thing that was needed was to revisit the list of requirements and provide a more specific definition for each one of the proposed requirements (see Subsection 5.2.3). After defining Use Cases, Design Mockups, the System Architecture and having specified the required features, the last thing to do was to implement the final application. This process is explained in detail in Section 5.3, providing an in-depth explanation on how the different features were implemented in the final application. Chapter 6will present the final product, as well as an analysis on how WebXMLIDE compares with the IDEs analyzed in Chapter 3and the initially proposed application. 6 WEBXMLIDE - FINAL PRODUCT This chapter contains screenshots of the final product, as well as a summary on what features were implemented and which were not, being postpone for future work. The final product can be accessed using the following link: https://webxml.epl.di. uminho.pt/. 6.1 screenshots This section contains screenshots of every page in the application, showing how the system responds to an example provided in many W3C Tutorials 1 (see Examples 6.1,6.2) applied on every component. 1<?xml version=" 1.0" encoding="UTF−8" ?> 2<!DOCTYPE note SYSTEM " Note . dtd "> 3<note > 4<to >Tove</to > 5<from>Jani </from> 6<heading>Reminder</heading> 7<body>Don ' t f org et me t h i s weekend!</body> 8</note > Example 6.1: Note.xml 1<!DOCTYPE note 2[ 3<!ELEMENT note ( to , from , heading , body ) > 4<!ELEMENT to ( #PCDATA)> 5<!ELEMENT from ( #PCDATA)> 6<!ELEMENT heading ( #PCDATA)> 7<!ELEMENT body ( #PCDATA)> 8]> Example 6.2: Note.dtd 1https://www.w3schools.com/xml/xml_dtd.asp 97 6.1. Screenshots 98 6.1.1XML + DTD Figure 38 shows the application with an XML Document and a DTD, both well-formed and linked between them. We can see the XML Document is marked as valid against the given DTD. Figure 38: XML + DTD (App Screenshot) 6.1.2XML + XSD Figure 39 shows the application with an XML Document and a XSD, both well-formed but they’re not linked, as the XML Document is linked to the previous DTD. The XSD Code in the screenshot was generated from the DTD Code using the system’s converter. 6.1. Screenshots 99 Figure 39: XML + XSD (App Screenshot) 6.1.3XML + XSLT Figure 40 shows the application with an XML Document and a XSLT stylesheet, both well-formed. The preview was generated using the system’s features. Figure 40: XML + XSLT (App Screenshot) 6.1. Screenshots 100 6.1.4XML + XPath Figure 41 shows the application with a well-formed XML Document and a simple XPath query. The output results from running the XPath expression on the application. Figure 41: XML + XPath (App Screenshot) 6.1.5Documentation Figures 42 and 43 show the documentation page which contains links for tutorials on every component of the IDE, as well as an example project that can be loaded onto the editors and a simple guide on how the project upload works on WebXMLIDE. Figure 42: Documentation Page (App Screenshot) - Tutorials and Example Project 6.2. Feature Checklist 101 Figure 43: Documentation Page (App Screenshot) - Project Upload Guide 6.2 feature checklist Going back to the evaluation criteria defined in Table 5, let’s now look at how well the resulting application does when evaluated with the same criteria as the previously analyzed XML IDEs. To make it more readable, see Table 13. Requirement Criteria 1. XML Code Editor 0if absent 1if present 2. XML Syntax Highlighting, Auto- Completion and Code Folding 0if none present 1if 1is present 2if 2are present 3if all are present 3. XML Document Views: Text, Dev (Text + Annotations) and Tree 0if none present 1if 1is present 2if 2are present 3if all are present 4. XML Well-Formed Check 0if absent 1if present 5. XML Validator according to XSD or DTD 0if none present 1if only one present 2if both present 6.2. Feature Checklist 102 6. Random XML Documents Generator according to XSD or DTD 0if none present 1if only one present 2if both present 7. XSD Code Editor 0if absent 1if present 8. DTD Code Editor 0if absent 1if present 9. DTD to XSD Converter 0if absent 1if present 10. XSLT Code Editor 0if absent 1if present 11. XSLT Preview 0if absent 1if present 12. XPath Evaluator 0if absent 1if present 13. High Availability (Web-App, Windows, Linux, MacOS) 0if available only on 1OS 1if available only on 2OS 2if available on all 3ma- jor OS 3for WebApp 14. Price 0(Most Expensive) to 4(Free) 15. Intuitive and simple UI/UX 0to 10 Table 13: Evaluation criteria for XML Editors, IDEs and Toolboxes Table 14 shows the evaluation for the final application: Requirement Criteria 1. XML Code Editor 1 2. XML Syntax Highlighting, Auto-Completion and Code Folding 3 3. XML Document Views: Text, Dev (Text + Annotations) and Tree 0 4. XML Well-Formed Check 1 5. XML Validator according to XSD or DTD 2 6. Random XML Documents Generator according to XSD or DTD 0 7. XSD Code Editor 1 8. DTD Code Editor 1 9. DTD to XSD Converter 1 10. XSLT Code Editor 1 11. XSLT Preview 1 12. XPath Evaluator 1 6.3. Summary 103 13. High Availability (Web-App, Windows, Linux, MacOS) 3 14. Price 4 15. Intuitive and simple UI/UX 92 Total 29 Table 14: Final Application Evaluation Comparing the IDE with the highest evaluation during the State of the Art research of this project (given to Editix 3 ), with the proposed tool and the actual final application for this project, the comparison graph is presented in Figure 44. Figure 44: Editix vs Proposed Tool vs Final Product It is clear some of the features weren’t met in the end-product like the different view modes for XML Documents and XML Generation from DTD or XSD. However, the application is still good when put to the test against the best-ranked IDE in Editix. Considering the UI/UX criteria is a subjective one, it would be unreasonable to say the final application is better than Editix but we can say with certainty that the two IDEs are pretty close to each other. 6.3 summary This Chapter provided screenshots of WebXMLIDE being used with a real-world example (see Section 6.1), as well as the documentation pages included in the final application, providing users with links to tutorials, project examples and a short guide on how to upload projects to the application (see Subsection 6.1.5). 2This value is based on user feedback 3https://www.editix.com/ 6.3. Summary 104 Section 6.2presents the results of evaluating WebXMLIDE following the criteria defined in Table 13, as well as comparing these results with the best application analyzed in Chapter 3-Editix -, and the initially proposed application. Having completed the development of WebXMLIDE, it was time to test the application with real users. The testing methodology, as well as the results obtained from these tests are presented and analyzed in Chapter 7. 7 TESTS AND RESULTS This chapter presents the test methodology used to evaluate the success of the project, as well as the results of these tests and the conclusions that can be drawn from these results. 7.1 tests During the development period of the application, a "simplified" version supporting only XML, DTD and XPath was extracted. This "simplified" application was used in practical classes of a Bachelor’s Degree curricular unit on Digital Documents and Annotation Languages at Universidade do Minho. 7.1.1Methodology To understand if the goals of the project were accomplished, it was important to determine who the focus group for this project was and provide them with the opportunity to use the IDE and learn XML with it. As previously mentioned, the users that used the simplified version of the application were students of a Bachelor’s Degree at Universidade do Minho, who were attending a curricular unit on Digital Documents and Annotation Languages. The fact these students came from a (non-technological) linguistics and humanities background, and were learning XML, DTD and XPath, made them the perfect test-users for "WebXMLIDE". The application was made available on the beginning of April on the URL: https:// webxml.epl.di.uminho.pt/ , and has been used weekly, in these students practical classes, to create XML Documents, define and validate their documents against DTDs, and perform XPath queries on those documents. After using the application for 7weeks, these students were asked to answer a survey providing feedback about "WebXMLIDE". Some experienced users were also given the chance to try the application and answer the survey, in order to see if the application is suitable for all kinds of users. 105 7.2. Results Discussion 112 in graphics format in Figure 55 show a very good number of users who are satisfied with the application. Figure 55: Forms Question 11 Responses - Overall Satisfaction analysis summary From the responses received in the survey, it is easy to notice that the simplified version of the WebXMLIDE application had some flaws, specially in displaying the error messages, and the error messages themselves. However, the overall satisfaction results show that the application served the needs of the majority of users. 8 CONCLUSION This last chapter presents the work plan and timeline, as well as a summary of this thesis, a reflection on the highlights and contributions achieved in this project, and the future work that could be done to improve the application. 8.1 work plan This section will present the work plan defined at the beginning of this project and then present the work timeline that happened while developing this project. This Master’s thesis was estimated to be completed in one academic year. The development of this project was scheduled according to the following phases: 1ST TO 3RD MONTH: The first three months are focused on the bibliographic study of the technologies that will be used in this project as well as the state of the art. 4TH TO 11TH MONTHS: Development of the web platform fulfilling the proposed requirements. 12TH MONTH: Results Evaluation and Discussion. The development of this thesis report was supposed to occur simultaneously to the development of the each phase previously mentioned. The final stage of this project was set to be almost exclusively focused on the conclusions over the work done and reviewing the thesis report. The Gant Chart in Figure 56 shows the previously explained work plan. Figure 56: Planned Schedule of the project 113 8.2. Report Summary 114 The time spent to develop this project was actually shorter than planned and included two more phases: one where a prototype was built, to serve as a playground to test and play with the different technologies that would later be used on the final application; and another, where a simplified version of the application (XML with DTD and XPath only) was put to use in a real world context so that it could be tested and improved. The complete version was made available to test as well. The writing of this report always went hand-on-hand with the development of the project. The Gant Chart in Figure 57 shows the actual work timeline. Figure 57: Actual Work Timeline of the project 8.2 report summary So far, this document has given the context and motivation for the development of the proposed tool, as well as an explanation on well-formed XML Documents, XML Document validation against DTD or XML Schemas and some components of XSL (XSLT and XPath). After introducing the project for this Master’s thesis, this document showed an extensive research on the available XML IDEs, XML Editors and some XML Toolboxes, analyzing how well each product satisfies the requirements established for this project and comparing the best option available (according to the criteria defined in Table 5and the results of evaluating each tool according to the criteria in Table 6) to the proposed tool. The results from this research reinforced the research hypothesis (Chapter 1.3) by showing that, despite the existence of some very complete solutions for inexperienced XML users to work on XML Development, these are often too complicated to use, unavailable for all users, not appropriate for beginners, very expensive or simply lack too many features that are key when learning the basics of XML Development. The absence of a beginner-oriented, free-to- use, highly available (as a web application) and free solution makes the case for why the proposed tool is not only viable but necessary. Then, Chapter 4explained the proposed approach for the development of the desired Web XML IDE, presented the system’s use cases, provided an explanation on how the system will deal with input files and the processing components, and presented the mockups for the proposed application. 8.3. Highlights and Contributions 115 The fifth chapter presented the development of this project in two different moments (planning and implementing stages) and the technologies that were used in the process. It offered a more in-depth view of the system’s requirements and architecture as well as a brief and simple explanation on how the many different features were implemented in the application. The sixth chapter has presented the end-product, named WebXMLIDE, using screenshots and taking the final app to the test on the criteria defined and used in Chapter 2, in order to compare the feature list of WebXMLIDE against what was proposed with the project and what was already available in the market when it came to XML IDEs. The seventh chapter introduced the testing methodology and the results from those tests, evaluating user feedback and determining if the goal of the project was accomplished or not. This last chapter presents the work plan defined at the beginning of the project and the actual work plan, a small summary of this document, a reflection on the highlights of this project and some ideas for future work that would benefit this project. 8.3 highlights and contributions The developed application met most of the requirements and objectives initially proposed, which in itself is a highlight, but one of the biggest achievement was to have the application available to use in the real-word for users to learn XML while using it, providing the opportunity for testing the software with the desired focus group in a real context. The testing phase turned out to be a success and a very important stage of the application’s development. The biggest achievement of this project is the fact that there is a final version of the application running on the internet, accessible to everyone and free, offering a high-quality and beginner-friendly platform for working with XML & Company. 8.4 future work While developing the application, it was already possible to imagine some tools, libraries or features that would make the development process or the application itself better. One thing that would made the development of this project a lot easier is a JavaScript library ready to deal with all different parts of working with XML. Finding a library that supported DTDs was a difficult challenge that was overcome but the same library didn’t support XPath expressions, or at least, not well enough. This is the reason why there are 3 different JavaScript libraries and 1command line component to deal with XML in this project: node-libxml was used for parsing XML, DTD and XSD Files as well as test the validity of XML Documents against a given DTD or Schema; Libxmljs2was used to run XPath expressions on 8.4. Future Work 116 the XML Documents (node-libxml provided a very limited XPath feature, hence the need to use a different library); xmldom was used to parse XML Documents and create DOM Trees from the input or source documents; last but not least, Trang was used to convert DTDs into XML Schemas. A JavaScript library to support all of these features would be a massive help to developers working with XML & Company on JavaScript projects. There was also a lack of good options to generate XML code from a given DTD or XML Schema. There were some available, but all of them provided a different set of limitations and none would be able to create viable and valid XML Documents based on DTDs or XSDs. One thing that came up was the possibility to build, not only a generator capable of creating XML Documents from any DTD or Schema, but also a context-sensitive one. This idea comes from the increased use of AI to support developers in programming. An AI model that would be able to generate well-formed XML Documents that would be valid against the input DTD or Schema, but also sensitive to the tags and schema definition, when it came to filling the text elements or attributes. This would lead to realistic, well-formed and valid XML Document generation. Besides the lack of libraries and tools described previously, there are also some improvements that could be made to the application, slightly improving User Experience and functionality, which are two key factors given the goals for this project. One of these things is an interactive and graphical way to create Schemas. Some editors already allow for the user to create XML Schemas using graphical editors where the user drags and drops different elements to create the desired rules for the schema. Schemas are heavy to write by hand, even with auto-completion and syntax highlighting. Adding this feature would improve on the ease-of-use and improve the application’s support to learning XSD. Another improvement that could be made to this project would be to use the hint-options configuration of CodeMirror with real-time DTD or XSD conversion to simple JavaScript Schemas, using the DTD or XSD defined in the application to provide the user with code suggestions that match the entire DTD or XSD, instead of providing them only taking into consideration the previously opened element tag. BIBLIOGRAPHY James Clark. Trang. https://relaxng.org/jclark/trang.html ,2008. Accessed: 2023-03-30. Bigyan Ghimire. 15 Best XML Editors for Productive Development. https://geekflare. com/best-xml-editors/, November 2022. Accessed: 2022-11-26. Software Testing Help. 14 Best XML Editors In 2022. https://www.softwaretestinghelp. com/best-xml-editors/, October 2022. Accessed: 2022-11-29. ArborText Inc. W3C XML Specification DTD ("XMLspec"). https://www.w3.org/XML/1998/ 06/xmlspec-report-v20.html, June 1998. Accessed: 2022-09-14. Michael Dyck Jonathan Robie and Josh Spiegel. XML Path Language (XPath) 3.1. https: //www.w3.org/TR/2017/REC-xpath-31-20170321/, March 2021a. Accessed: 2022-11-26. Michael Dyck Jonathan Robie and Josh Spiegel. XQuery 3.1: An XML Query Language. https://www.w3.org/TR/xquery-31/, March 2021b. Accessed: 2022-11-26. Michael Kay. XSL Transformations (XSLT) Version 2.0(Second Edition). https://www.w3. org/TR/2021/REC-xslt20-20210330/, March 2021. Accessed: 2022-11-26. James Kiarie. The Most Used Operating Systems in the World. https://www.tecmint.com/ most-used-operating-systems-world/, November 2022. Accessed: 2022-12-05. James Porter. Vue Components. https://blog.scottlogic.com/2020/09/22/ vue-components.html, September 2022. Accessed: 2023-03-15. Liam Quin. Extensible Markup Language (XML). https://www.w3.org/XML , October 2016. Accessed: 2022-11-3. Liam Quin. The Extensible Stylesheet Language Family (XSL). https://www.w3.org/Style/ XSL, September 2017. Accessed: 2022-11-2. José Carlos Ramalho and Pedro Rangel Henriques. XML & XSL: da teoria à prática. Série Tecnologias de Informação ISBN-972-722-347-8. Editora FCA, 1st ed. edition, Oct 2002. C. M. Sperberg-McQueen and Henry Thompson. W3C XML Schema. https://www.w3.org/ XML/Schema, April 2000. Accessed: 2022-09-14. 117