Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | Friends
nsXMLContentBuilder Class Reference
Inheritance diagram for nsXMLContentBuilder:
Inheritance graph
Collaboration diagram for nsXMLContentBuilder:
Collaboration graph

List of all members.

Public Member Functions

void clear (in nsIDOMElement root)
void setDocument (in nsIDOMDocument doc)
void setElementNamespace (in AString ns)
void beginElement (in AString tagname)
void endElement ()
void attrib (in AString name, in AString value)
void textNode (in AString text)

Public Attributes

readonly attribute nsIDOMElement root
readonly attribute nsIDOMElement current

Protected Member Functions

 nsXMLContentBuilder ()
 ~nsXMLContentBuilder ()

Private Member Functions

void EnsureDoc ()

Private Attributes

nsCOMPtr< nsIContentmTop
nsCOMPtr< nsIContentmCurrent
nsCOMPtr< nsIDocumentmDocument
PRInt32 mNamespaceId


nsresult NS_NewXMLContentBuilder (nsIXMLContentBuilder **aResult)

Detailed Description

Definition at line 61 of file nsXMLContentBuilder.cpp.

Constructor & Destructor Documentation

Definition at line 88 of file nsXMLContentBuilder.cpp.

    : mNamespaceId(kNameSpaceID_None)
#ifdef DEBUG
//  printf("nsXMLContentBuilder CTOR\n");

Definition at line 96 of file nsXMLContentBuilder.cpp.

#ifdef DEBUG
//  printf("~nsXMLContentBuilder\n");

Member Function Documentation

void nsIXMLContentBuilder::attrib ( in AString  name,
in AString  value 
) [inherited]
void nsIXMLContentBuilder::beginElement ( in AString  tagname) [inherited]

Definition at line 240 of file nsXMLContentBuilder.cpp.

  if (!mDocument) {
    mDocument = do_CreateInstance(kXMLDocumentCID);
    // XXX should probably do some doc initialization here, such as
    // setting the base url
  NS_ASSERTION(mDocument, "null doc");

Here is the call graph for this function:

void nsIXMLContentBuilder::setElementNamespace ( in AString  ns) [inherited]
void nsIXMLContentBuilder::textNode ( in AString  text) [inherited]

Friends And Related Function Documentation

Definition at line 104 of file nsXMLContentBuilder.cpp.

  nsXMLContentBuilder* result = new nsXMLContentBuilder();
  if (! result)

  *aResult = result;
  return NS_OK;

Member Data Documentation

Definition at line 75 of file nsIXMLContentBuilder.idl.

Definition at line 80 of file nsXMLContentBuilder.cpp.

Definition at line 81 of file nsXMLContentBuilder.cpp.

Definition at line 82 of file nsXMLContentBuilder.cpp.

Definition at line 79 of file nsXMLContentBuilder.cpp.

Definition at line 74 of file nsIXMLContentBuilder.idl.

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