Package net.sf.saxon.tree.util
Class ProcInstParser
java.lang.Object
net.sf.saxon.tree.util.ProcInstParser
ProcInstParser is used to parse pseudo-attributes within Processing Instructions. This is a utility
class that is never instantiated.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getPseudoAttribute
(String content, String name) Get a pseudo-attribute.
-
Method Details
-
getPseudoAttribute
Get a pseudo-attribute. This is useful only if the processing instruction data part uses pseudo-attribute syntax, which it does not have to. This syntax is as described in the W3C Recommendation "Associating Style Sheets with XML Documents".- Parameters:
content
- the content of the processing instructionname
- the name of the required pseudo-attribute- Returns:
- the value of the pseudo-attribute if present, or null if not
- Throws:
XPathException
- if the syntax is invalid
-