InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IXMLParserUtils Class Referenceabstract

#include <IXMLParserUtils.h>

Inheritance diagram for IXMLParserUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IXMLPARSERUTILS }
 

Public Member Functions

virtual IIDXMLDOMDocumentCreateNewDOMDocument (const char *const uri=nil, ISAXServices *owner=nil)=0
 
virtual bool16 EvaluateXPathsForElement (const K2Vector< WideString > &xPaths, InterfacePtr< IIDXMLElement > rootElement, HitMatches &matches, PrefixToURIMap *prefixMap) const =0
 
virtual PMString GetContentAtChild (const PMString &xml, const PMString &valueToFind, bool *pFoundIt=nil)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

General utilities for XMLParser

Member Function Documentation

virtual IIDXMLDOMDocument* IXMLParserUtils::CreateNewDOMDocument (const char *const uri = nil,
ISAXServicesowner = nil 
)
pure virtual

Used to create a new DOM Document

NOTE: The caller of this method will be responsible for its destruction

Parameters
characterSize- Used to set the character encoding of the stream to parse
uri- The uri to use for the resolver
owner- The owner of this parser (used for error handling)

return - A new DOM document that can be be used to build out an entire DOM

virtual bool16 IXMLParserUtils::EvaluateXPathsForElement (const K2Vector< WideString > & xPaths,
InterfacePtr< IIDXMLElementrootElement,
HitMatches & matches,
PrefixToURIMap * prefixMap 
) const
pure virtual

Creates a list of elements from the XML structure of the document, beginning with the rootElement, matching the xpaths in the input vector.

Parameters
xPathsA vector of XPath strings
rootElementThe IIDXMLElement to start from in the document's structure
matchesThe pairs of XMLReferences and xpath indices matched
Returns
kFalse for errors occurred, kTrue otherwise (does not necessarily indicate a match was found)