XML Schema Validation Using Java API for XML Processing

Extensible Markup Language (XML) is a markup language that is developed to organize the structure of information in a text file. The data in XML formatted documents are represented by specifying a number of tags and determining the structural relationship between those tags. It has a simple structur...

Full description

Saved in:
Bibliographic Details
Published in:UKH journal of science and engineering Vol. 6; no. 1; pp. 33 - 41
Main Authors: Jamal, Shene Jalil, Rahman, Chnoor M., Abdulkarim, Mzhda S.
Format: Journal Article
Language:English
Published: Univeristy of Kurdistan Hewler 30.06.2022
Subjects:
ISSN:2520-7792, 2520-7792
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
Abstract Extensible Markup Language (XML) is a markup language that is developed to organize the structure of information in a text file. The data in XML formatted documents are represented by specifying a number of tags and determining the structural relationship between those tags. It has a simple structure and can be handled by any text editor. Therefore, XML formatted data is being commonly used to transfer and share data between different applications and organizations without having to convert the format of the data (Yang, 2019). In the XML world, “well-formed” and “valid” are the two most frequently used terms. A well-formed XML document is free from errors that can cause the document to not parse, such as: spelling, punctuation, grammar, and syntax errors. While in addition to having a well-formed markup, a valid XML must conform to a document type definition, this means the document must be semantically correct and matches a described standard of schemas and relationships (Appel, 2020).There are two standards of document type definition that can be used to validate an XML document, one is DTD or Document Type Definition which is used to identify the legal structure and names the legal elements of an XML document (Dykes and Tittel, 2011), and the other is XSD or XML Schema Definition. XSD is a diagrammatic representation that defines the valid structure of an XML document, it enables specifying the building blocks of an XML data set such as elements and attributes and their data types, number of child elements, fixed and default values of the elements and attributes that can appear in the documents (XML Schema Tutorial, 2020). In some applications the process of validating XML documents is combined with parsing the document. However, in some other cases the process of parsing and validating the XML documents need to be separated. This study focuses on constructing a separate XML document validator and validating XML documents against the defined XSD rules. A Java program is used to perform this experiment. Furthermore, the critical differences between XSD and DTD are also mentioned.
AbstractList Extensible Markup Language (XML) is a markup language that is developed to organize the structure of information in a text file. The data in XML formatted documents are represented by specifying a number of tags and determining the structural relationship between those tags. It has a simple structure and can be handled by any text editor. Therefore, XML formatted data is being commonly used to transfer and share data between different applications and organizations without having to convert the format of the data (Yang, 2019). In the XML world, “well-formed” and “valid” are the two most frequently used terms. A well-formed XML document is free from errors that can cause the document to not parse, such as: spelling, punctuation, grammar, and syntax errors. While in addition to having a well-formed markup, a valid XML must conform to a document type definition, this means the document must be semantically correct and matches a described standard of schemas and relationships (Appel, 2020).There are two standards of document type definition that can be used to validate an XML document, one is DTD or Document Type Definition which is used to identify the legal structure and names the legal elements of an XML document (Dykes and Tittel, 2011), and the other is XSD or XML Schema Definition. XSD is a diagrammatic representation that defines the valid structure of an XML document, it enables specifying the building blocks of an XML data set such as elements and attributes and their data types, number of child elements, fixed and default values of the elements and attributes that can appear in the documents (XML Schema Tutorial, 2020). In some applications the process of validating XML documents is combined with parsing the document. However, in some other cases the process of parsing and validating the XML documents need to be separated. This study focuses on constructing a separate XML document validator and validating XML documents against the defined XSD rules. A Java program is used to perform this experiment. Furthermore, the critical differences between XSD and DTD are also mentioned.
Extensible Markup Language (XML) is a markup language that is developed to organize the structure of information in a text file. The data in XML formatted documents are represented by specifying a number of tags and determining the structural relationship between those tags. It has a simple structure and can be handled by any text editor. Therefore, XML formatted data is being commonly used to transfer and share data between different applications and organizations without having to convert the format of the data (Yang, 2019). In the XML world, “well-formed” and “valid” are the two most frequently used terms. A well-formed XML document is free from errors that can cause the document to not parse, such as: spelling, punctuation, grammar, and syntax errors. While in addition to having a well-formed markup, a valid XML must conform to a document type definition, this means the document must be semantically correct and matches a described standard of schemas and relationships (Appel, 2020).There are two standards of document type definition that can be used to validate an XML document, one is DTD or Document Type Definition which is used to identify the legal structure and names the legal elements of an XML document (Dykes and Tittel, 2011), and the other is XSD or XML Schema Definition. XSD is a diagrammatic representation that defines the valid structure of an XML document, it enables specifying the building blocks of an XML data set such as elements and attributes and their data types, number of child elements, fixed and default values of the elements and attributes that can appear in the documents (XML Schema Tutorial, 2020). In some applications the process of validating XML documents is combined with parsing the document. However, in some other cases the process of parsing and validating the XML documents need to be separated. This study focuses on constructing a separate XML document validator and validating XML documents against the defined XSD rules. A Java program is used to perform this experiment. Furthermore, the critical differences between XSD and DTD are also mentioned.
Author Rahman, Chnoor M.
Jamal, Shene Jalil
Abdulkarim, Mzhda S.
Author_xml – sequence: 1
  givenname: Shene Jalil
  surname: Jamal
  fullname: Jamal, Shene Jalil
  organization: Computer Department, College of Science, University of Sulaimani, Sulaymaniyah, Kurdistan Region, Iraq
– sequence: 2
  givenname: Chnoor M.
  surname: Rahman
  fullname: Rahman, Chnoor M.
  organization: Department of Applied Computer, College of Medical and Applied Sciences, Charmo University, Chamchamal, Sulaymaniyah, Kurdistan Region, Iraq
– sequence: 3
  givenname: Mzhda S.
  surname: Abdulkarim
  fullname: Abdulkarim, Mzhda S.
  organization: Department of Applied Computer, College of Medical and Applied Sciences, Charmo University, Chamchamal, Sulaymaniyah, Kurdistan Region, Iraq
BookMark eNpNkNtOAjEQhhujiYi8w_oAi2233baXhHjAYCRRjHfNbHcKi7AlLZLw9nIwxKuZ-Wfmu_huyGUbWiTkjtE-l1SZ-5_v-SJhf1u2bMcp5_31uihywS5Ih0tOc6UMv_zXX5NeSgtK6f5dMM06RH29jrN3N8cVZJ-wbGrYNKHNpqlpZ9kLbCEbTEaZDzE7HE5icJgOu1ty5WGZsPdXu2T6-PAxfM7Hb0-j4WCcO1YqlgtXS_TSoSk1E4hohBYVp0IplEbTQlPhK-5kVTLjmWCelx6Q70fgAmXRJaMTtw6wsOvYrCDubIDGHoMQZxbipnFLtLJWVPAKtOdMgOaVBihqVpi6Eoai37PMieViSCmiP_MYtUeh9iTUnoXag1ArWPELPYhsqg
ContentType Journal Article
DBID AAYXX
CITATION
DOA
DOI 10.25079/ukhjse.v6n1y2022.pp33-41
DatabaseName CrossRef
DOAJ Directory of Open Access Journals
DatabaseTitle CrossRef
DatabaseTitleList
CrossRef
Database_xml – sequence: 1
  dbid: DOA
  name: DOAJ Directory of Open Access Journals
  url: https://www.doaj.org/
  sourceTypes: Open Website
DeliveryMethod fulltext_linktorsrc
Discipline Sciences (General)
EISSN 2520-7792
EndPage 41
ExternalDocumentID oai_doaj_org_article_5d7042ba8f214a82b8aa3d139db490ef
10_25079_ukhjse_v6n1y2022_pp33_41
GroupedDBID AAYXX
ADBBV
ALMA_UNASSIGNED_HOLDINGS
BCNDV
CITATION
GROUPED_DOAJ
M~E
ID FETCH-LOGICAL-c1671-4cd5ef5ce96814eee9484b20477e59803804fb2c5b619f141f26fae2b61a24e53
IEDL.DBID DOA
ISSN 2520-7792
IngestDate Tue Oct 14 19:03:06 EDT 2025
Sat Nov 29 05:56:16 EST 2025
IsDoiOpenAccess true
IsOpenAccess true
IsPeerReviewed true
IsScholarly true
Issue 1
Language English
LinkModel DirectLink
MergedId FETCHMERGED-LOGICAL-c1671-4cd5ef5ce96814eee9484b20477e59803804fb2c5b619f141f26fae2b61a24e53
OpenAccessLink https://doaj.org/article/5d7042ba8f214a82b8aa3d139db490ef
PageCount 9
ParticipantIDs doaj_primary_oai_doaj_org_article_5d7042ba8f214a82b8aa3d139db490ef
crossref_primary_10_25079_ukhjse_v6n1y2022_pp33_41
PublicationCentury 2000
PublicationDate 2022-6-30
PublicationDateYYYYMMDD 2022-06-30
PublicationDate_xml – month: 06
  year: 2022
  text: 2022-6-30
  day: 30
PublicationDecade 2020
PublicationTitle UKH journal of science and engineering
PublicationYear 2022
Publisher Univeristy of Kurdistan Hewler
Publisher_xml – name: Univeristy of Kurdistan Hewler
SSID ssj0002504181
Score 2.1863606
Snippet Extensible Markup Language (XML) is a markup language that is developed to organize the structure of information in a text file. The data in XML formatted...
SourceID doaj
crossref
SourceType Open Website
Index Database
StartPage 33
SubjectTerms dtd
java
jaxp
xml schema
xsd
Title XML Schema Validation Using Java API for XML Processing
URI https://doaj.org/article/5d7042ba8f214a82b8aa3d139db490ef
Volume 6
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
journalDatabaseRights – providerCode: PRVAON
  databaseName: DOAJ Directory of Open Access Journals
  customDbUrl:
  eissn: 2520-7792
  dateEnd: 20231231
  omitProxy: false
  ssIdentifier: ssj0002504181
  issn: 2520-7792
  databaseCode: DOA
  dateStart: 20170101
  isFulltext: true
  titleUrlDefault: https://www.doaj.org/
  providerName: Directory of Open Access Journals
link http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwrV1JSwMxGA1SRLyIdcG6EcGDHsZmmyzHKhYVLQUXehuSmQQXqKUb-O_9MjOWevLibXbC-zL53stk3ofQKTG5FM6wxFsqE5FqkjgeHGwBVyA8zjTostiE6vX0YGD6S6W-4pqwyh64Aq6dFgr6lbM6MCqsZk5bywvgLYUThvgQR1-izJKYimNwNOaC3LWGTuJaZ-A8pj37eH2f-Iu5HNIvUPygJ0ecJ4L-SkhLvv1lguluoo2aGeJO1aImWvHDLdSs370JPqsNos-3kRo83OPHPNqt4hfg0VVZJFx-_cd3dm5xp3-LgY3ieGH9KwCc20HP3eunq5ukLoCQ5FQq0HZ5kfqQ5t5ITYX33ggtHCNCKZ8aTbgmIjiWpw5kUKCCBiaD9Qx2LRM-5buoMfwc-j2EC2409wWFaEihHLFBUGKBPBVcGkjqLcR-UMhGlc9FBvqghC6roMsW0GURukzQFrqMeC1uiFbV5QEIYFYHMPsrgPv_8ZADtB4bVi3kO0SN6Xjmj9BqPp--TcbHZd_4BkHKuyI
linkProvider Directory of Open Access Journals
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=XML+Schema+Validation+Using+Java+API+for+XML+Processing&rft.jtitle=UKH+journal+of+science+and+engineering&rft.au=Shene+Jalil+Jamal&rft.au=Chnoor+M.+Rahman&rft.au=Mzhda+S.+Abdulkarim&rft.date=2022-06-30&rft.pub=Univeristy+of+Kurdistan+Hewler&rft.eissn=2520-7792&rft.volume=6&rft.issue=1&rft.spage=33&rft.epage=41&rft_id=info:doi/10.25079%2Fukhjse.v6n1y2022.pp33-41&rft.externalDBID=DOA&rft.externalDocID=oai_doaj_org_article_5d7042ba8f214a82b8aa3d139db490ef
thumbnail_l http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/lc.gif&issn=2520-7792&client=summon
thumbnail_m http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/mc.gif&issn=2520-7792&client=summon
thumbnail_s http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/sc.gif&issn=2520-7792&client=summon