|
|
|||
|
|
| XMLGetString["data"] returns the XML expression tree corresponding to a string. |
| XMLGetString["data", parser] uses the pre-initialized XMLParser object to parse the string. |
| "NormalizeWhitespace" | True | whether to remove leading, trailing, and multiple internal whitespace in elements | |
| "IncludeNamespaces" | Automatic | whether to explicitly include namespaces | |
| "ValidateAgainstDTD" | Automatic | whether to validate the XML against the DTD content model | |
| "IncludeEmbeddedObjects" | None | whether to retain comments and processing instructions | |
| "AllowRemoteDTDAccess" | True | whether to seek DTDs on the network | |
| "ReadDTD" | True | whether to read the DTD | |
| "IncludeDefaultedAttributes" | False | whether to explicitly include default attributes as defined in the DTD | |
| "AllowUnrecognizedEntities" | Automatic | whether entities undefined by the DTD are considered errors | |
| "PreserveCDATASections" | False | whether the distinction between CDATA sections and regular character data is maintained on import |
Needs["XML`"] XMLGetString imports a string as SymbolicXML:
Needs["XML`"] To use XMLGetString with a pre-initialized parser, pre-initialize the parser according to a DTD at the remote URL and name that pre-initialized parser XHTMLParser:
Use the pre-initialized parser to validate the string on import. "Valid"->True indicates the string was validated successfully:
|
| © 2013 Wolfram Research, Inc. |