SlideShare uma empresa Scribd logo
1 de 15
Understanding
  XML DOM
(W3C Standard)

         Created by :
         Om Vikram Thapa
INDEX :
   XML DOM – Introduction
   DOM Nodes (Tree Structure)
   DOM Parsing
   DOM Load Functions (in IE & FireFox)
   DOM Properties & Methods
   DOM HttpRequest
   DOM Node Types
   DOM Parse Error Objects
   Thank You!!
XML DOM (INTRODUCTION)
 The XML DOM (Document Object Model) defines a standard
   way for accessing and manipulating XML documents.

 The DOM is a W3C (World Wide Web Consortium) standard.

 DOM defines the objects and properties and methods (interface)
   to access all XML elements.

 The DOM presents an XML document as a tree structure, with
   elements, attributes, and text as nodes.

 The DOM is separated into 3 different parts / levels:
   Core DOM - standard model for any structured document
   XML DOM - standard model for XML documents
   HTML DOM - standard model for HTML documents
What is an XML DOM?
 The XML DOM is:
  - A standard object model for XML
  - A standard programming interface for XML
  - Platform and language-independent
  - A W3C standard
 The XML DOM defines the objects and properties
  of all XML elements, and the methods (interface) to
  access them.
 The XML DOM is a standard for how to get, change,
  add or delete XML elements.
AN EXAMPLE OF books.xml:
<bookstore>
- <book category="cooking">
 <title lang="en">Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
 <price>30.00</price>
 </book>
- <book category="language">
  <title lang="en">English</title>
 <author>Om Vikram</author>
  <year>2005</year>
  <price>50.00</price>
  </book>
  </bookstore>
XML DOM NODES :
DOM NODES DESCRIPTION
 According to the DOM, everything in an XML
   document is a node.
 The entire document is a document node .
 Every XML element is an element node .
 The text in the XML elements are text nodes .
 Every attribute is an attribute node .
 Comments are comment nodes.
In our ex.
- The root node <bookstore> holds four <book> nodes.
- Each <book> node contain 4 text node i.e.
  <title>, <author>, <year>, and <price>
XML DOM PARSING:
 Most browsers have a build-in XML parser to read
    and manipulate XML.
   The parser reads XML into memory and converts
    XML it into XML DOM object which is accessible
    from JavaScript .
   There are some differences between Microsoft's
    XML parser and the parsers used in other browsers.
   The MS parser supports loading of both XML files
    and XML strings (text)
   Other browsers use Separate parsers.
   However, all parsers contain functions to traverse
    XML trees, access, insert, and delete nodes.
Loading XML with IE using MS
XML Parser:
 The following JavaScript fragment loads an XML
  document “book.xml” into the parser :
  xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
  xmlDoc.async="false";
  xmlDoc.load("books.xml");


 The following JavaScript fragment loads an XML text
  into the parser :
  xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
  xmlDoc.async="false";
  xmlDoc.loadXML(txt);
Loading XML with FireFox & Other
 XML Parser :
 The following JavaScript fragment loads an XML
  document “book.xml” into the parser :

  xmlDoc=document.implementation.createDocument("","",null)
  ;
  xmlDoc.async="false";
  xmlDoc.load("books.xml");


 The following JavaScript fragment loads an XML text
  into the parser :
   parser=new DOMParser();
   xmlDoc=parser.parseFromString(txt,"text/xml");
DOM PROPERTIES & METHODS:
 XML DOM Properties:
    x.nodeName - the name of x
    x.nodeValue - the value of x
    x.parentNode - the parent node of x
    x.childNodes - the child nodes of x
    x.attributes - the attributes nodes of x
                     (where x is a node object. )
 XML DOM Methods:
      x.getElementsByTagName(name) - get all elements
       with a specified tag name
      x.appendChild(node) - insert a child node to x
      x.removeChild(node) - remove a child node from x
AN EXAMPLE :
txt=xmlObj.getElementsByTagName("title")[0].childNodes[0].nodeValue;

where
 xmlObj - the XML DOM object created by the parser.
 getElementsByTagName("title")[0] - the first <title>
  element
 childNodes[0] - the first child of the <title> element (the
  text node)
 nodeValue - the value of the node (the text itself)
NODE TYPES
NodeTypes   Named Constants
    1      ELEMENT_NODE
    2      ATTRIBUTE_NODE
    3      TEXT_NODE
    4      CDATA_SECTION_NODE
    5      ENTITY_REFERENCE_NODE
    6      ENTITY_NODE
    7      PROCESSING_INSTRUCTION_NODE
    8      COMMENT_NODE
    9      DOCUMENT_NODE
    10     DOCUMENT_TYPE_NODE
    11     DOCUMENT_FRAGMENT_NODE
    12     NOTATION_NODE
DOM PARSE ERROR OBJECTS
 When trying to open an XML document, a parser-error may
    occur.
   With the parseError object, you can retrieve the error code, the
    error text, the line that caused the error, and more.
    Property       Description
   errorCode Returns a long integer error code
   Reason         Returns a string containing the reason for the error
   Line           Returns a long integer representing the line
                   number for the error
   Linepos        Returns a long integer representing the line
                   position for the error
   srcText        Returns a string containing the line that caused the
                   error
   url            Returns the URL pointing the loaded document
   Filepos        Returns a long integer file position of the error
THANK YOU !!

Mais conteúdo relacionado

Mais procurados

Querying XML: XPath and XQuery
Querying XML: XPath and XQueryQuerying XML: XPath and XQuery
Querying XML: XPath and XQuery
Katrien Verbert
 

Mais procurados (20)

Dtd
DtdDtd
Dtd
 
XML
XMLXML
XML
 
css.ppt
css.pptcss.ppt
css.ppt
 
Web html table tags
Web html  table tagsWeb html  table tags
Web html table tags
 
Document object model(dom)
Document object model(dom)Document object model(dom)
Document object model(dom)
 
Document Object Model (DOM)
Document Object Model (DOM)Document Object Model (DOM)
Document Object Model (DOM)
 
Css Ppt
Css PptCss Ppt
Css Ppt
 
Querying XML: XPath and XQuery
Querying XML: XPath and XQueryQuerying XML: XPath and XQuery
Querying XML: XPath and XQuery
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
 
XML, DTD & XSD Overview
XML, DTD & XSD OverviewXML, DTD & XSD Overview
XML, DTD & XSD Overview
 
html tags
html tagshtml tags
html tags
 
XML External Entity (XXE)
XML External Entity (XXE)XML External Entity (XXE)
XML External Entity (XXE)
 
CSS
CSSCSS
CSS
 
XML - Data Modeling
XML - Data ModelingXML - Data Modeling
XML - Data Modeling
 
ADO.NET
ADO.NETADO.NET
ADO.NET
 
MYSQL
MYSQLMYSQL
MYSQL
 
XSLT
XSLTXSLT
XSLT
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
XML
XMLXML
XML
 
Xml Schema
Xml SchemaXml Schema
Xml Schema
 

Destaque (20)

An Introduction to the DOM
An Introduction to the DOMAn Introduction to the DOM
An Introduction to the DOM
 
XML and XPath details
XML and XPath detailsXML and XPath details
XML and XPath details
 
Dom
Dom Dom
Dom
 
Xpath presentation
Xpath presentationXpath presentation
Xpath presentation
 
Xpath
XpathXpath
Xpath
 
Document object model
Document object modelDocument object model
Document object model
 
Xml parsing
Xml parsingXml parsing
Xml parsing
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
XPath - XML Path Language
XPath - XML Path LanguageXPath - XML Path Language
XPath - XML Path Language
 
XSLT
XSLTXSLT
XSLT
 
Parsing XML Data
Parsing XML DataParsing XML Data
Parsing XML Data
 
Overview of XSL, XPath and XSL-FO
Overview of XSL, XPath and XSL-FOOverview of XSL, XPath and XSL-FO
Overview of XSL, XPath and XSL-FO
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
XML DOM
XML DOMXML DOM
XML DOM
 
Java XML Parsing
Java XML ParsingJava XML Parsing
Java XML Parsing
 
XSLT
XSLTXSLT
XSLT
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
XML/XSLT
XML/XSLTXML/XSLT
XML/XSLT
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
DOM and SAX
DOM and SAXDOM and SAX
DOM and SAX
 

Semelhante a Understanding XML DOM

java API for XML DOM
java API for XML DOMjava API for XML DOM
java API for XML DOM
Surinder Kaur
 
06 xml processing-in-.net
06 xml processing-in-.net06 xml processing-in-.net
06 xml processing-in-.net
glubox
 

Semelhante a Understanding XML DOM (20)

Xml nisha dwivedi
Xml nisha dwivediXml nisha dwivedi
Xml nisha dwivedi
 
Xml 215-presentation
Xml 215-presentationXml 215-presentation
Xml 215-presentation
 
Chapter 18
Chapter 18Chapter 18
Chapter 18
 
Xml
XmlXml
Xml
 
Part 7
Part 7Part 7
Part 7
 
Internet and Web Technology (CLASS-7) [XML and AJAX] | NIC/NIELIT Web Technology
Internet and Web Technology (CLASS-7) [XML and AJAX] | NIC/NIELIT Web TechnologyInternet and Web Technology (CLASS-7) [XML and AJAX] | NIC/NIELIT Web Technology
Internet and Web Technology (CLASS-7) [XML and AJAX] | NIC/NIELIT Web Technology
 
XML
XMLXML
XML
 
Unit 10: XML and Beyond (Sematic Web, Web Services, ...)
Unit 10: XML and Beyond (Sematic Web, Web Services, ...)Unit 10: XML and Beyond (Sematic Web, Web Services, ...)
Unit 10: XML and Beyond (Sematic Web, Web Services, ...)
 
Xml writers
Xml writersXml writers
Xml writers
 
Unit 2
Unit 2 Unit 2
Unit 2
 
Xml session
Xml sessionXml session
Xml session
 
java API for XML DOM
java API for XML DOMjava API for XML DOM
java API for XML DOM
 
The xml
The xmlThe xml
The xml
 
[DSBW Spring 2010] Unit 10: XML and Web And beyond
[DSBW Spring 2010] Unit 10: XML and Web And beyond[DSBW Spring 2010] Unit 10: XML and Web And beyond
[DSBW Spring 2010] Unit 10: XML and Web And beyond
 
Ch23
Ch23Ch23
Ch23
 
Ch23 xml processing_with_java
Ch23 xml processing_with_javaCh23 xml processing_with_java
Ch23 xml processing_with_java
 
advDBMS_XML.pptx
advDBMS_XML.pptxadvDBMS_XML.pptx
advDBMS_XML.pptx
 
DOM Quick Overview
DOM Quick OverviewDOM Quick Overview
DOM Quick Overview
 
06 xml processing-in-.net
06 xml processing-in-.net06 xml processing-in-.net
06 xml processing-in-.net
 
DATA INTEGRATION (Gaining Access to Diverse Data).ppt
DATA INTEGRATION (Gaining Access to Diverse Data).pptDATA INTEGRATION (Gaining Access to Diverse Data).ppt
DATA INTEGRATION (Gaining Access to Diverse Data).ppt
 

Mais de Om Vikram Thapa

Mais de Om Vikram Thapa (20)

Next Set of Leaders Series
Next Set of Leaders SeriesNext Set of Leaders Series
Next Set of Leaders Series
 
Integration Testing at go-mmt
Integration Testing at go-mmtIntegration Testing at go-mmt
Integration Testing at go-mmt
 
Understanding payments
Understanding paymentsUnderstanding payments
Understanding payments
 
System Alerting & Monitoring
System Alerting & MonitoringSystem Alerting & Monitoring
System Alerting & Monitoring
 
Serverless computing
Serverless computingServerless computing
Serverless computing
 
Sumologic Community
Sumologic CommunitySumologic Community
Sumologic Community
 
Postman Integration Testing
Postman Integration TestingPostman Integration Testing
Postman Integration Testing
 
Scalibility
ScalibilityScalibility
Scalibility
 
5 Dysfunctions of a team
5 Dysfunctions of a team5 Dysfunctions of a team
5 Dysfunctions of a team
 
AWS Must Know
AWS Must KnowAWS Must Know
AWS Must Know
 
Continuous Feedback
Continuous FeedbackContinuous Feedback
Continuous Feedback
 
Sql views, stored procedure, functions
Sql views, stored procedure, functionsSql views, stored procedure, functions
Sql views, stored procedure, functions
 
Confluence + jira together
Confluence + jira togetherConfluence + jira together
Confluence + jira together
 
Understanding WhatFix
Understanding WhatFixUnderstanding WhatFix
Understanding WhatFix
 
Tech Recruitment Process
Tech Recruitment Process Tech Recruitment Process
Tech Recruitment Process
 
Jira Workshop
Jira WorkshopJira Workshop
Jira Workshop
 
Security@ecommerce
Security@ecommerceSecurity@ecommerce
Security@ecommerce
 
Understanding iis part2
Understanding iis part2Understanding iis part2
Understanding iis part2
 
Understanding iis part1
Understanding iis part1Understanding iis part1
Understanding iis part1
 
.Net framework
.Net framework.Net framework
.Net framework
 

Último

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Understanding XML DOM

  • 1. Understanding XML DOM (W3C Standard) Created by : Om Vikram Thapa
  • 2. INDEX :  XML DOM – Introduction  DOM Nodes (Tree Structure)  DOM Parsing  DOM Load Functions (in IE & FireFox)  DOM Properties & Methods  DOM HttpRequest  DOM Node Types  DOM Parse Error Objects  Thank You!!
  • 3. XML DOM (INTRODUCTION)  The XML DOM (Document Object Model) defines a standard way for accessing and manipulating XML documents.  The DOM is a W3C (World Wide Web Consortium) standard.  DOM defines the objects and properties and methods (interface) to access all XML elements.  The DOM presents an XML document as a tree structure, with elements, attributes, and text as nodes.  The DOM is separated into 3 different parts / levels: Core DOM - standard model for any structured document XML DOM - standard model for XML documents HTML DOM - standard model for HTML documents
  • 4. What is an XML DOM?  The XML DOM is: - A standard object model for XML - A standard programming interface for XML - Platform and language-independent - A W3C standard  The XML DOM defines the objects and properties of all XML elements, and the methods (interface) to access them.  The XML DOM is a standard for how to get, change, add or delete XML elements.
  • 5. AN EXAMPLE OF books.xml: <bookstore> - <book category="cooking"> <title lang="en">Italian</title> <author>Giada De Laurentiis</author> <year>2005</year> <price>30.00</price> </book> - <book category="language"> <title lang="en">English</title> <author>Om Vikram</author> <year>2005</year> <price>50.00</price> </book> </bookstore>
  • 7. DOM NODES DESCRIPTION  According to the DOM, everything in an XML document is a node.  The entire document is a document node .  Every XML element is an element node .  The text in the XML elements are text nodes .  Every attribute is an attribute node .  Comments are comment nodes. In our ex. - The root node <bookstore> holds four <book> nodes. - Each <book> node contain 4 text node i.e. <title>, <author>, <year>, and <price>
  • 8. XML DOM PARSING:  Most browsers have a build-in XML parser to read and manipulate XML.  The parser reads XML into memory and converts XML it into XML DOM object which is accessible from JavaScript .  There are some differences between Microsoft's XML parser and the parsers used in other browsers.  The MS parser supports loading of both XML files and XML strings (text)  Other browsers use Separate parsers.  However, all parsers contain functions to traverse XML trees, access, insert, and delete nodes.
  • 9. Loading XML with IE using MS XML Parser:  The following JavaScript fragment loads an XML document “book.xml” into the parser : xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async="false"; xmlDoc.load("books.xml");  The following JavaScript fragment loads an XML text into the parser : xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async="false"; xmlDoc.loadXML(txt);
  • 10. Loading XML with FireFox & Other XML Parser :  The following JavaScript fragment loads an XML document “book.xml” into the parser : xmlDoc=document.implementation.createDocument("","",null) ; xmlDoc.async="false"; xmlDoc.load("books.xml");  The following JavaScript fragment loads an XML text into the parser : parser=new DOMParser(); xmlDoc=parser.parseFromString(txt,"text/xml");
  • 11. DOM PROPERTIES & METHODS:  XML DOM Properties:  x.nodeName - the name of x  x.nodeValue - the value of x  x.parentNode - the parent node of x  x.childNodes - the child nodes of x  x.attributes - the attributes nodes of x (where x is a node object. )  XML DOM Methods:  x.getElementsByTagName(name) - get all elements with a specified tag name  x.appendChild(node) - insert a child node to x  x.removeChild(node) - remove a child node from x
  • 12. AN EXAMPLE : txt=xmlObj.getElementsByTagName("title")[0].childNodes[0].nodeValue; where  xmlObj - the XML DOM object created by the parser.  getElementsByTagName("title")[0] - the first <title> element  childNodes[0] - the first child of the <title> element (the text node)  nodeValue - the value of the node (the text itself)
  • 13. NODE TYPES NodeTypes Named Constants  1 ELEMENT_NODE  2 ATTRIBUTE_NODE  3 TEXT_NODE  4 CDATA_SECTION_NODE  5 ENTITY_REFERENCE_NODE  6 ENTITY_NODE  7 PROCESSING_INSTRUCTION_NODE  8 COMMENT_NODE  9 DOCUMENT_NODE  10 DOCUMENT_TYPE_NODE  11 DOCUMENT_FRAGMENT_NODE  12 NOTATION_NODE
  • 14. DOM PARSE ERROR OBJECTS  When trying to open an XML document, a parser-error may occur.  With the parseError object, you can retrieve the error code, the error text, the line that caused the error, and more. Property Description  errorCode Returns a long integer error code  Reason Returns a string containing the reason for the error  Line Returns a long integer representing the line number for the error  Linepos Returns a long integer representing the line position for the error  srcText Returns a string containing the line that caused the error  url Returns the URL pointing the loaded document  Filepos Returns a long integer file position of the error