Macro Language Reference > Macros > Document Preferences > xmlparser
  
xmlparser
Description
A control keyword used with fdpref: XML parser preferences.
Syntax
xmlparser parser:n saveerr:n strictxp:n xpvar:n xptest:n funcg:n funcx:n ignxmldec:n ignentref:n
xpxptr:n intdtd:n nsres:n expentref:n expentrefin:n expxinc:n keep_tree:n linkext:n
loadextent:n
parser
The XML parser to use:
1
3B2XML
0
LibXML
saveerr
Save XML Parser errors with document?
1
Yes
0
No
strictxp
UNUSED - (stores last setting of the XPath Compliance flag) 'xpvar' = Allow 3B2 variables
1
Yes
0
No
xpvar
Allow 3B2 variables in XPath?
1
Yes
0
No
xptest
Allow 3B2 node tests in XPath?
1
Yes
0
No
funcg
Add 3B2 XPath Functions to global namespace?
1
Yes
0
No
funcx
Add 3B2 XPath Functions to x3b2 namespace?
1
Yes
0
No
ignxmldec
Ignore missing XML declaration?
1
Yes
0
No
ignentref
Ignore undefined entity references?
1
Yes
0
No
xpxptr
Allow XPointer functions in XPath? From version 8.12 this option has been deprecated and is no longer supported.
1
Yes
0
No
intdtd
Validate against internal DTD?
1
Yes
0
No
nsres
Namespace resolution
0
Use URI then 3B2
1
Use URI only
2
Use 3B2 only
expentref
Expand/replace entity references?
1
Yes
0
No
expentrefin
Expand/replace entity references in:
0
Never
1
In showstrings
2
In attribute loops
3
In both
expxinc
Expand XInclude elements?
1
Yes
0
No
keep_tree
Retain legacy behaviour option for backward compatibility: prior to version 8.07g PTC ALD retained what it could of the XML tree even if it was not well formed
1
Yes
0
No
linkext
Create link to external files. Prior to version 8.12j, if LibXML needed to read an external file, for example a DTD or an XInclude file, it would automatically create a link to the file in the document.
As this is not always desirable, an option has been added to the tdpref macro to prevent the link from being created. The file will still be accessed in the same way as before, the only difference being that it will no longer be attached to the document.
1
Yes
0
No
loadextent
Load external entity references?
1
Yes
0
No