SetStringToParse method: XmlDocFactory class

Syntax

SetStringToParse(xmlstring)

Description

Use the SetStringToParse method to set the XML string to be parsed by the XmlDocFactory object.

The XmlDocFactory class is not a full-featured XML parser. Strings to be parsed must be well-formed XML; otherwise the parsing will not work. In addition, the XmlDocFactory does not make a copy of the string to be parsed; as a result the string must remain in scope for the duration of processing.

Parameters

Parameter Description

xmlstring

A string containing well-formed XML.

Returns

A Boolean value: True if the XML string is set, False otherwise.

Example

Local XmlDocFactory &theXmlDocFactory;

&theXmlDocFactory = CreateXmlDocFactory();

&returnbool = &theXmlDocFactory.SetStringToParse(&inputXmlString);

Local XmlDoc &theXmlDoc;

&theXmlDoc = &theXmlDocFactory.GetNextXmlDoc("Transaction");