68
In[2]:=
Contact@query_StringD :=
Cases@XML Parser XMLGet@
"http:eelocalhost:8080ewebMathematicaeExampleseXMLePhone.jsp?name=" <>
queryD, XMLElement@"Person", x_List, 8   x, InfinityD
In[3]:=
Contact@ "Tom"D
Out[3]=
88Name O Tom Jones, Email O tomj, Phone O 235 1231<<
Of  course  your  client  could  be  written  in  some  system  other  than  Mathematica,  such  as  Visual  Basic,  Python,  or
Java.
5.2 MathML
MathML  is designed  to allow  mathematical,  scientific,  and other  technical  information  to be served,  received,  and
processed  on  the  World  Wide Web.  It  is  an official  recommendation  of  the  World Wide  Web  Consortium  (W3C)
working  group  on  mathematics.  Users  of  webMathematica  can  benefit  from  MathML  in  a  number  of  ways.  They
can use MathML for documents that contain a mixture of mathematics and text, they can generate MathML dynami 
cally  on  their  webMathematica  site,  and  they can  use  a  MathML  entry  mechanism  to enter  mathematical  notation
into their web browser and send this to webMathematica for computation.
Wolfram  Research  has  long  been  involved  in  the  development  of  MathML,  both  as  a  founding  member  of  the
mathematics  working  group  of  the  W3C  and  as  the  host  of  the  first  two  official  MathML  conferences  in  2000
(http://www.mathmlconference.org/2000)  and  2002  (http://www.mathmlconference.org/2002).  Mathematica
contains  many  features  for  working  with  MathML  and  there  is  a  strong  relationship  between  the  Mathematica
typesetting system and MathML.
One  resource  for  learning  more  about  MathML  is  the  Wolfram  Research  sponsored  web  site,
http://www.mathmlcentral.com. A section  describing  the evolution  of MathML  and  some of the issues involved in
developing  a  mathematical  language  suitable  for  a  computation  system  such  as  Mathematica  is  found  at
http://www.mathmlcentral.com/history.html.
If you are not interested in the specific details of how MathML works and just want to use MathML in your output,
then you should go to the sections 
Generating MathML
 and 
Sending MathML
.
5.2.1 Embedding MathML in Web Documents
This  section  discusses  how  documents  can  be  written  that  mix  both  mathematics  and  text.  These  documents  are
written in XML format and use both MathML and XHTML (the XML compliant form of HTML). webMathematica
contains  functions that do  all  of this  automatically,  so you do  not  need  to read this  unless you wish to learn  more
about the details of how browsers support MathML.
XHTML
XHTML is an XML compliant form of HTML, available as an official W3C recommendation, http://www.w3.org/ 
MarkUp. It is very similar to HTML, except that for a document to be valid it must follow the rules of XML. (Some
of  these  were  described  in  the  
previous  section
.)  To  use  documents  that  mix  mathematics  and  text,  XHTML  is
required. Use of XHTML is needed anyway, since the W3C intends that HTML will not be developed further.
The sample  XHTML  document  illustrated  below  is  very similar  to  HTML,  except  for  the initial  XML  declaration
and the DTD reference. The latter can be used by an XML parser to validate that the input document is indeed valid
XHTML.  This  demonstrates  one  of  the  benefits  of  XML  technology.  That  is,  a  parser  can  validate  a  document,
checking details such as the different tags being in the correct places and holding the correct number of arguments,
without  specializing  in  the  particular  flavor  of  XML.  The  reference  to  the  DTD  is  not  required;  however,  it  is
necessary if the document is to be validated.
 .
<





New Page 1








Home : About Us : Network : Services : Support : FAQ : Control Panel : Order Online : Sitemap : Contact : Terms Of Service

 

Our web partners:  Jsp Web Hosting  Unlimited Web Hosting  Cheapest Web Hosting  Java Web Hosting  Web Templates  Best Web Templates  Web Design Templates  Interland Web Hosting  Cheap Web Hosting  Filemaker Web Hosting  Tomcat Web Hosting  Quality Web Hosting  Best Web Hosting  Mac Web Hosting

 
 

Virtualwebstudio. Business web hosting division of Vision Web Hosting Inc. All rights reserved

Comcast Web Hosting