XML (.xml) File Format
XML file format
Description
Notes
Examples
XML (eXtensible Markup Language) is a general purpose markup language and met-format for structured documents.
It is the successor of the SGML format.
The XMLTools package can be used to import and export arbitrary XML files.
The general-purpose commands Import and Export also support this format.
Content-Type: application/xml
xmlfile≔FileTools:-JoinPath⁡example/maplecatalog.xml,base=datadir
C:\Program Files\Maple 2016\data\example\maplecatalog.xml
with⁡XMLTools:
xmltree≔ParseFile⁡xmlfile
xmltree≔_XML_Document⁡_XML_Element⁡_XML_ElementType⁡catalog,,_XML_Element⁡_XML_ElementType⁡book,_XML_Attribute⁡_XML_AttrName⁡id,_XML_AttrValue⁡book01,_XML_Element⁡_XML_ElementType⁡author,,_XML_Text⁡Walter Gander and Martin J. Gander,_XML_Element⁡_XML_ElementType⁡title,,_XML_Text⁡Scientific Computing - An Introduction using Maple and MATLAB,_XML_Element⁡_XML_ElementType⁡language,,_XML_Text⁡English,_XML_Element⁡_XML_ElementType⁡publish_date,,_XML_Text⁡2014-04-24,_XML_Element⁡_XML_ElementType⁡isbn_10,,_XML_Text⁡3319043242,_XML_Element⁡_XML_ElementType⁡isbn_13,,_XML_Text⁡978-3319043241,_XML_Element⁡_XML_ElementType⁡book,_XML_Attribute⁡_XML_AttrName⁡id,_XML_AttrValue⁡book02,_XML_Element⁡_XML_ElementType⁡author,,_XML_Text⁡Joseph L. Zachary,_XML_Element⁡_XML_ElementType⁡title,,_XML_Text⁡Introduction to Scientific Programming: Computational Problem Solving Using Maple and C,_XML_Element⁡_XML_ElementType⁡language,,_XML_Text⁡English,_XML_Element⁡_XML_ElementType⁡publish_date,,_XML_Text⁡2014-09-12,_XML_Element⁡_XML_ElementType⁡isbn_10,,_XML_Text⁡1461275180,_XML_Element⁡_XML_ElementType⁡isbn_13,,_XML_Text⁡978-1461275183,_XML_Element⁡_XML_ElementType⁡book,_XML_Attribute⁡_XML_AttrName⁡id,_XML_AttrValue⁡book03,_XML_Element⁡_XML_ElementType⁡author,,_XML_Text⁡Thomas Westermann,_XML_Element⁡_XML_ElementType⁡title,,_XML_Text⁡Mathematische Probleme l,_XML_Entity⁡#xc3,_XML_Entity⁡#xb6,_XML_Text⁡sen mit Maple: Ein Kurzeinstieg,_XML_Element⁡_XML_ElementType⁡language,,_XML_Text⁡Deutsch,_XML_Element⁡_XML_ElementType⁡publish_date,,_XML_Text⁡2014-05-12,_XML_Element⁡_XML_ElementType⁡isbn_10,,_XML_Text⁡364241351X,_XML_Element⁡_XML_ElementType⁡isbn_13,,_XML_Text⁡978-3642413513,_XML_Element⁡_XML_ElementType⁡book,_XML_Attribute⁡_XML_AttrName⁡id,_XML_AttrValue⁡book04,_XML_Element⁡_XML_ElementType⁡author,,_XML_Text⁡Viktor Korobov,_XML_Element⁡_XML_ElementType⁡title,,_XML_Text⁡Chemical Kinetics with Mathcad and Maple,_XML_Element⁡_XML_ElementType⁡language,,_XML_Text⁡English,_XML_Element⁡_XML_ElementType⁡publish_date,,_XML_Text⁡2014-10-12,_XML_Element⁡_XML_ElementType⁡isbn_10,,_XML_Text⁡370911750X,_XML_Element⁡_XML_ElementType⁡isbn_13,,_XML_Text⁡978-3709117507,_XML_Element⁡_XML_ElementType⁡book,_XML_Attribute⁡_XML_AttrName⁡id,_XML_AttrValue⁡book05,_XML_Element⁡_XML_ElementType⁡author,,_XML_Text⁡Mazen Shahin,_XML_Element⁡_XML_ElementType⁡title,,_XML_Text⁡Explorations of Mathematical Models in Biology with Maple,_XML_Element⁡_XML_ElementType⁡language,,_XML_Text⁡English,_XML_Element⁡_XML_ElementType⁡publish_date,,_XML_Text⁡2014-10-12,_XML_Element⁡_XML_ElementType⁡isbn_10,,_XML_Text⁡111803211X,_XML_Element⁡_XML_ElementType⁡isbn_13,,_XML_Text⁡978-1118032114,_XML_Element⁡_XML_ElementType⁡book,_XML_Attribute⁡_XML_AttrName⁡id,_XML_AttrValue⁡book06,_XML_Element⁡_XML_ElementType⁡author,,_XML_Text⁡Ronald W. Shonkwiler and James Herod,_XML_Element⁡_XML_ElementType⁡title,,_XML_Text⁡Mathematical Biology: An Introduction with Maple and MATLAB,_XML_Element⁡_XML_ElementType⁡language,,_XML_Text⁡English,_XML_Element⁡_XML_ElementType⁡publish_date,,_XML_Text⁡2014-03-31,_XML_Element⁡_XML_ElementType⁡isbn_10,,_XML_Text⁡1489982817,_XML_Element⁡_XML_ElementType⁡isbn_13,,_XML_Text⁡978-1489982810,_XML_Element⁡_XML_ElementType⁡book,_XML_Attribute⁡_XML_AttrName⁡id,_XML_AttrValue⁡book07,_XML_Element⁡_XML_ElementType⁡author,,_XML_Text⁡David Betounes,_XML_Element⁡_XML_ElementType⁡title,,_XML_Text⁡Partial Differential Equations for Computational Science: With Maple,_XML_Entity⁡#xc2,_XML_Entity⁡#xae,_XML_Text⁡ and Vector Analysis,_XML_Element⁡_XML_ElementType⁡language,,_XML_Text⁡English,_XML_Element⁡_XML_ElementType⁡publish_date,,_XML_Text⁡2014-01-14,_XML_Element⁡_XML_ElementType⁡isbn_10,,_XML_Text⁡1461274567,_XML_Element⁡_XML_ElementType⁡isbn_13,,_XML_Text⁡978-1461274568,_XML_Element⁡_XML_ElementType⁡book,_XML_Attribute⁡_XML_AttrName⁡id,_XML_AttrValue⁡book08,_XML_Element⁡_XML_ElementType⁡author,,_XML_Text⁡Frank E. Harris,_XML_Element⁡_XML_ElementType⁡title,,_XML_Text⁡Mathematics for Physical Science and Engineering: Symbolic Computing Applications in Maple and Mathematica,_XML_Element⁡_XML_ElementType⁡language,,_XML_Text⁡English,_XML_Element⁡_XML_ElementType⁡publish_date,,_XML_Text⁡2014-01-14,_XML_Element⁡_XML_ElementType⁡isbn_10,,_XML_Text⁡0128010002,_XML_Element⁡_XML_ElementType⁡isbn_13,,_XML_Text⁡978-0128010006,_XML_Element⁡_XML_ElementType⁡book,_XML_Attribute⁡_XML_AttrName⁡id,_XML_AttrValue⁡book09,_XML_Element⁡_XML_ElementType⁡author,,_XML_Text⁡B. Barnes and G..R. Fulford,_XML_Element⁡_XML_ElementType⁡title,,_XML_Text⁡Mathematical Modelling with Case Studies: Using Maple and MATLAB,_XML_Element⁡_XML_ElementType⁡language,,_XML_Text⁡English,_XML_Element⁡_XML_ElementType⁡publish_date,,_XML_Text⁡2014-12-16,_XML_Element⁡_XML_ElementType⁡isbn_10,,_XML_Text⁡1482247720,_XML_Element⁡_XML_ElementType⁡isbn_13,,_XML_Text⁡978-1482247725,_XML_Element⁡_XML_ElementType⁡book,_XML_Attribute⁡_XML_AttrName⁡id,_XML_AttrValue⁡book10,_XML_Element⁡_XML_ElementType⁡author,,_XML_Entity⁡#xd0,_XML_Entity⁡#x90,_XML_Entity⁡#xd0,_XML_Entity⁡#xbb,_XML_Entity⁡#xd0,_XML_Entity⁡#xb5,_XML_Entity⁡#xd0,_XML_Entity⁡#xba,_XML_Entity⁡#xd1,_XML_Entity⁡#x81,_XML_Entity⁡#xd0,_XML_Entity⁡#xb0,_XML_Entity⁡#xd0,_XML_Entity⁡#xbd,_XML_Entity⁡#xd0,_XML_Entity⁡#xb4,_XML_Entity⁡#xd1,_XML_Entity⁡#x80,_XML_Text⁡ ,_XML_Entity⁡#xd0,_XML_Entity⁡#x93,_XML_Entity⁡#xd0,_XML_Entity⁡#xbe,_XML_Entity⁡#xd1,_XML_Entity⁡#x80,_XML_Entity⁡#xd1,_XML_Entity⁡#x8e,_XML_Entity⁡#xd1,_XML_Entity⁡#x88,_XML_Entity⁡#xd0,_XML_Entity⁡#xba,_XML_Entity⁡#xd0,_XML_Entity⁡#xb8,_XML_Entity⁡#xd0,_XML_Entity⁡#xbd,_XML_Element⁡_XML_ElementType⁡title,,_XML_Entity⁡#xd0,_XML_Entity⁡#xa2,_XML_Entity⁡#xd0,_XML_Entity⁡#xb5,_XML_Entity⁡#xd0,_XML_Entity⁡#xbe,_XML_Entity⁡#xd1,_XML_Entity⁡#x80,_XML_Entity⁡#xd0,_XML_Entity⁡#xb8,_XML_Entity⁡#xd1,_XML_Entity⁡#x8f,_XML_Text⁡ ,_XML_Entity⁡#xd0,_XML_Entity⁡#xb3,_XML_Entity⁡#xd1,_XML_Entity⁡#x80,_XML_Entity⁡#xd1,_XML_Entity⁡#x83,_XML_Entity⁡#xd0,_XML_Entity⁡#xbf,_XML_Entity⁡#xd0,_XML_Entity⁡#xbf,_XML_Text⁡ ,_XML_Entity⁡#xd0,_XML_Entity⁡#xb2,_XML_Text⁡ Maple,_XML_Element⁡_XML_ElementType⁡language,,_XML_Entity⁡#xd0,_XML_Entity⁡#xa0,_XML_Entity⁡#xd1,_XML_Entity⁡#x83,_XML_Entity⁡#xd1,_XML_Entity⁡#x81,_XML_Entity⁡#xd1,_XML_Entity⁡#x81,_XML_Entity⁡#xd0,_XML_Entity⁡#xba,_XML_Entity⁡#xd0,_XML_Entity⁡#xb8,_XML_Entity⁡#xd0,_XML_Entity⁡#xb9,_XML_Element⁡_XML_ElementType⁡publish_date,,_XML_Text⁡2014-04-24,_XML_Element⁡_XML_ElementType⁡isbn_10,,_XML_Text⁡3659984043,_XML_Element⁡_XML_ElementType⁡isbn_13,,_XML_Text⁡978-3659984044
book1≔GetChildByName⁡xmltree,book1
book1≔_XML_Element⁡_XML_ElementType⁡book,_XML_Attribute⁡_XML_AttrName⁡id,_XML_AttrValue⁡book01,_XML_Element⁡_XML_ElementType⁡author,,_XML_Text⁡Walter Gander and Martin J. Gander,_XML_Element⁡_XML_ElementType⁡title,,_XML_Text⁡Scientific Computing - An Introduction using Maple and MATLAB,_XML_Element⁡_XML_ElementType⁡language,,_XML_Text⁡English,_XML_Element⁡_XML_ElementType⁡publish_date,,_XML_Text⁡2014-04-24,_XML_Element⁡_XML_ElementType⁡isbn_10,,_XML_Text⁡3319043242,_XML_Element⁡_XML_ElementType⁡isbn_13,,_XML_Text⁡978-3319043241
Print⁡book1
<book id = 'book01'> <author>Walter Gander and Martin J. Gander</author> <title>Scientific Computing - An Introduction using Maple and MATLAB</title> <language>English</language> <publish_date>2014-04-24</publish_date> <isbn_10>3319043242</isbn_10> <isbn_13>978-3319043241</isbn_13> </book>
See Also
Formats
XMLTools
Download Help Document