Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
XMLTools[Validate] - validate an XML document against a DTD
Calling Sequence
Validate(xmlDoc, opts)
Parameters
xmlDoc
-
Maple XML tree; XML element to validate
opts
equation(s) of the form option=value where option is one of dtd or schema; specify validation options
Description
The Validate(xmlDoc) command validates an XML element xmlDoc (typically the root element of an XML document). If xmlDoc is determined to be valid according to the specified DTD/schema, then Validate returns true. Otherwise, Validate returns an error containing a description of problems found in the document.
The opts argument must be one of the following.
dtd=location
Specifies the location of the DTD to be used.
schema=location
Specifies the target no namespace XML Schema Location. If present, xmlDoc's own noNamespaceSchemaLocation attribute is effectively ignored.
Note: If neither the dtd option nor the schema option is present, then xmlDoc is checked for well-formedness only.
Examples
See Also
XMLTools, XMLTools[ParseFile], XMLTools[ParseString]
Download Help Document