API published in: S60 3rd Ed
Link against: senxml.lib
Required Capabilities
None
#include <senfragment.h>
Inherits MSenFragment.
Inherited by CSenBaseFragment.
Public Member Functions |
|
virtual CSenElement & | AsElement ()=0 |
Getting the fragment as an XML element. |
|
virtual CSenElement * | ExtractElement ()=0 |
virtual void | SetReader (CSenXmlReader &aReader)=0 |
Sets the XML reader to be used for parsing for the fragment. |
|
virtual CSenXmlReader * | Reader ()=0 |
Gets the XML reader which this fragment uses for parsing. |
|
virtual void | ParseL (const TDesC8 &aBuf)=0 |
Method to invoke parsing of a XML data. |
|
virtual TInt | BuildFrom (const TDesC8 &aBuf)=0 |
Same as ParseL() except that it doesn't leave in case of an error. |
|
virtual void | DelegateParsingL (MSenFragment &aDelegate)=0 |
Let the delegate MSenFragment handle the following SAX events. |
|
virtual void | DelegateParsingL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName, const RAttributeArray &aAttrs)=0 |
Creates a new fragment and lets the created MSenFragment handle the following SAX events. |
|
virtual void | ParseWithL (CSenXmlReader &aReader)=0 |
Sets the reader for this fragment and sets this to be the content handler of the following SAX events. |
|
virtual void | SetOwner (MSenFragment &aFragment)=0 |
Sets a new parent for this fragment. |
|
virtual void | ResumeParsingFromL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName)=0 |
Resumes the parsing. |
|
virtual void | SetAttributesL (const RAttributeArray &aAttrs)=0 |
Sets the attributes for the fragment. |
|
virtual void | WriteStartElementL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName, const RAttributeArray &aAttrs)=0 |
Writes the start element tag to the content stream. |
|
virtual void | WriteEndElementL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName)=0 |
Writes the end element tag to the content stream. |
|
virtual const TDesC8 & | LocalName () const =0 |
Getter for Fragment's local name. |
|
virtual const TDesC8 & | NsUri () const =0 |
Getter for Fragment's namespace URI. |
|
virtual const TDesC8 & | NsPrefix () const =0 |
Getter for namespace prefix of this fragment. |
|
virtual void | WriteAsXMLToL (RWriteStream &aWriteStream)=0 |
Fragment writes itself to a write stream using UTF-8 charset encoding. |
|
virtual HBufC * | AsXmlUnicodeL ()=0 |
Gets the fragment as an unicode XML buffer. |
|
virtual HBufC8 * | AsXmlL ()=0 |
Gets the fragment as an XML buffer. |
|
virtual TPtrC8 | Content ()=0 |
Getter for the content. |
|
virtual TBool | ConsistsOfL (MSenFragment &aCandidate)=0 |
Checks if fragment matches to another fragment by its content and child elements. |
|
Getting the fragment as an XML element. This method will panic if element has not been initialized for any reason.
Implements MSenFragment. Implemented in CSenBaseFragment. |
|
Gets the fragment as an XML buffer. Buffer will contain all the childs etc.
Implements MSenFragment. Implemented in CSenBaseFragment, and CSenXmlServiceDescription. |
|
Gets the fragment as an unicode XML buffer. Buffer will contain all the childs etc.
Implements MSenFragment. Implemented in CSenBaseFragment, and CSenXmlServiceDescription. |
|
Same as ParseL() except that it doesn't leave in case of an error. Instead errors are trapped and error is returned. SetReader() must be called before this method can be used.
Implements MSenFragment. Implemented in CSenBaseFragment. |
|
Checks if fragment matches to another fragment by its content and child elements. Fragment can contain more data than the given candidate.
Implements MSenFragment. Implemented in CSenBaseFragment. |
|
Getter for the content. Returns content namespaces if there are any.
Implemented in CSenBaseFragment. |
|
Creates a new fragment and lets the created MSenFragment handle the following SAX events. This fragment is made the owner of the delegate and the delegate is expected to make this MSenFragment the receiver of SAX events once it has seen the end element for itself.
Implements MSenFragment. Implemented in CSenBaseFragment. |
|
Let the delegate MSenFragment handle the following SAX events. This fragment is made the owner of the delegate and the delegate is expected to make this MSenFragment the receiver of SAX events once it has seen the end element for itself.
Implements MSenFragment. Implemented in CSenBaseFragment. |
|
Implements MSenFragment. Implemented in CSenBaseFragment. |
|
Getter for Fragment's local name.
Implements MSenFragment. Implemented in CSenBaseFragment. |
|
Getter for namespace prefix of this fragment.
Implements MSenFragment. Implemented in CSenBaseFragment. |
|
Getter for Fragment's namespace URI.
Implements MSenFragment. Implemented in CSenBaseFragment. |
|
Method to invoke parsing of a XML data. Note: SetReader() must be called before this method can be used.
Implements MSenFragment. Implemented in CSenBaseFragment. |
|
Sets the reader for this fragment and sets this to be the content handler of the following SAX events.
Implements MSenFragment. Implemented in CSenBaseFragment, and CSenDomFragment. |
|
Gets the XML reader which this fragment uses for parsing.
Implements MSenFragment. Implemented in CSenBaseFragment. |
|
Resumes the parsing. Usually called by the delegate fragment which was parsing itself after DelegateParsingL().
Implements MSenFragment. Implemented in CSenBaseFragment, CSenDomFragment, and CSenXmlServiceDescription. |
|
Sets the attributes for the fragment.
Implements MSenFragment. Implemented in CSenBaseFragment, CSenDomFragment, and CSenXmlServiceDescription. |
|
Sets a new parent for this fragment.
Implements MSenFragment. Implemented in CSenBaseFragment. |
|
Sets the XML reader to be used for parsing for the fragment.
Implements MSenFragment. Implemented in CSenBaseFragment. |
|
Fragment writes itself to a write stream using UTF-8 charset encoding.
Implements MSenFragment. Implemented in CSenBaseFragment, and CSenXmlServiceDescription. |
|
Writes the end element tag to the content stream. Derivants can override the basic usage used in BaseFragment.
Implements MSenFragment. Implemented in CSenBaseFragment, and CSenDomFragment. |
|
Writes the start element tag to the content stream. Derivants can override the basic usage used in BaseFragment.
Implements MSenFragment. Implemented in CSenBaseFragment, and CSenDomFragment. |