11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

70 webMathematica User GuideHowever, this is not legal.Here is a paragraph.Here is another.Mathematica Support for XMLMathematica provides some very convenient ways to work with XML. Many of these are basedon the strong correspondence between structured XML documents and Mathematica expressions(the basic data type of Mathematica). This makes it easy to import XML data into Mathematicaand then work with it. This section gives a very brief introduction to working with XML inMathematica; more information is available in the online documentation.The following is a simple example.In[1]:= xml ="\n \n \n ANew Kind of ScienceStephen <strong>Wolfram</strong>\n\n \n The Lord of the RingsJ.R.R. Tolkien\n \n";This XML can be imported into Mathematica, which represents it with symbolic XML. Because ofthe nature of Mathematica expressions, symbolic XML is a Mathematica native form of XML thatis isomorphic to textual XML.In[2]:=sym = ImportString@ xml, "XML"DOut[2]= XMLObject@DocumentD@8XMLObject@DeclarationD@Version Ø 1.0D

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!