lib

KoXmlDocument Class Reference

#include <KoXmlReader.h>

Inheritance diagram for KoXmlDocument:
KoXmlNode

Public Member Functions

 KoXmlDocument (const KoXmlDocument &node)
KoXmlDocument & operator= (const KoXmlDocument &node)
bool operator== (const KoXmlDocument &) const
bool operator!= (const KoXmlDocument &) const
virtual bool isDocument () const
KoXmlElement documentElement () const
void setFastLoading (bool f)
bool fastLoading () const
bool setContent (TQIODevice *device, bool namespaceProcessing, TQString *errorMsg=0, int *errorLine=0, int *errorColumn=0)
bool setContent (TQIODevice *device, TQString *errorMsg=0, int *errorLine=0, int *errorColumn=0)
bool setContent (TQXmlInputSource *source, TQXmlReader *reader, TQString *errorMsg=0, int *errorLine=0, int *errorColumn=0)
Public Member Functions inherited from KoXmlNode
 KoXmlNode (const KoXmlNode &node)
KoXmlNode & operator= (const KoXmlNode &node)
bool operator== (const KoXmlNode &) const
bool operator!= (const KoXmlNode &) const
virtual KoXmlNode::NodeType nodeType () const
virtual bool isNull () const
virtual bool isElement () const
virtual bool isText () const
virtual bool isCDATASection () const
void clear ()
KoXmlElement toElement ()
KoXmlText toText ()
KoXmlCDATASection toCDATASection ()
KoXmlDocument toDocument ()
virtual TQString nodeName () const
virtual TQString namespaceURI () const
virtual TQString prefix () const
virtual TQString localName () const
KoXmlDocument ownerDocument () const
KoXmlNode parentNode () const
bool hasChildNodes () const
KoXmlNode firstChild () const
KoXmlNode lastChild () const
KoXmlNode nextSibling () const
KoXmlNode previousSibling () const
KoXmlNode namedItem (const TQString &name) const
KoXmlNode namedItemNS (const TQString &nsURI, const TQString &name) const
void load (int depth=1)
void unload ()

Friends

class KoXmlNode

Additional Inherited Members

Public Types inherited from KoXmlNode
enum  NodeType {
  NullNode = 0 , ElementNode , TextNode , CDATASectionNode ,
  ProcessingInstructionNode , DocumentNode
}
Protected Member Functions inherited from KoXmlNode
 KoXmlNode (KoXmlNodeData *)
Protected Attributes inherited from KoXmlNode
KoXmlNodeData * d

Detailed Description

KoXmlDocument represents an XML document, structured in a DOM tree.

KoXmlDocument is designed to be memory efficient. Unlike TQDomDocument from TQt's XML module, KoXmlDocument does not store all nodes in the DOM tree. Some nodes will be loaded and parsed on-demand only.

KoXmlDocument is read-only, you can not modify its content.

Author
Ariya Hidayat ariya.nosp@m.@kde.nosp@m..org

Definition at line 221 of file KoXmlReader.h.

Constructor & Destructor Documentation

◆ KoXmlDocument() [1/2]

KoXmlDocument::KoXmlDocument ( )

Definition at line 1423 of file KoXmlReader.cpp.

◆ KoXmlDocument() [2/2]

KoXmlDocument::KoXmlDocument ( const KoXmlDocument & node)

Definition at line 1444 of file KoXmlReader.cpp.

◆ ~KoXmlDocument()

KoXmlDocument::~KoXmlDocument ( )
virtual

Definition at line 1430 of file KoXmlReader.cpp.

Member Function Documentation

◆ documentElement()

KoXmlElement KoXmlDocument::documentElement ( ) const

Definition at line 1475 of file KoXmlReader.cpp.

◆ fastLoading()

bool KoXmlDocument::fastLoading ( ) const

Definition at line 1490 of file KoXmlReader.cpp.

◆ isDocument()

bool KoXmlDocument::isDocument ( ) const
virtual

Reimplemented from KoXmlNode.

Definition at line 1470 of file KoXmlReader.cpp.

◆ operator!=()

bool KoXmlDocument::operator!= ( const KoXmlDocument & doc) const

Definition at line 1465 of file KoXmlReader.cpp.

◆ operator=()

KoXmlDocument & KoXmlDocument::operator= ( const KoXmlDocument & node)

Definition at line 1452 of file KoXmlReader.cpp.

◆ operator==()

bool KoXmlDocument::operator== ( const KoXmlDocument & doc) const

Definition at line 1459 of file KoXmlReader.cpp.

◆ setContent() [1/3]

bool KoXmlDocument::setContent ( TQIODevice * device,
bool namespaceProcessing,
TQString * errorMsg = 0,
int * errorLine = 0,
int * errorColumn = 0 )

Definition at line 1511 of file KoXmlReader.cpp.

◆ setContent() [2/3]

bool KoXmlDocument::setContent ( TQIODevice * device,
TQString * errorMsg = 0,
int * errorLine = 0,
int * errorColumn = 0 )

Definition at line 1505 of file KoXmlReader.cpp.

◆ setContent() [3/3]

bool KoXmlDocument::setContent ( TQXmlInputSource * source,
TQXmlReader * reader,
TQString * errorMsg = 0,
int * errorLine = 0,
int * errorColumn = 0 )

Definition at line 1495 of file KoXmlReader.cpp.

◆ setFastLoading()

void KoXmlDocument::setFastLoading ( bool f)

Definition at line 1485 of file KoXmlReader.cpp.

◆ KoXmlNode

friend class KoXmlNode
friend

Definition at line 256 of file KoXmlReader.h.


The documentation for this class was generated from the following files: