Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsSchemaLoader.cpp File Reference
#include "nsSchemaPrivate.h"
#include "nsSchemaLoader.h"
#include "nsIWebServiceErrorHandler.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsINodeInfo.h"
#include "nsIDOMDocument.h"
#include "nsIDOM3Node.h"
#include "nsIXMLHttpRequest.h"
#include "nsIDOMEvent.h"
#include "nsIDOMEventListener.h"
#include "nsIDOMEventTarget.h"
#include "nsNetUtil.h"
#include "nsIParserService.h"
#include "nsReadableUtils.h"
#include "nsIXPConnect.h"
#include "nsIScriptSecurityManager.h"
#include "nsIPrincipal.h"
#include "nsIServiceManager.h"
#include "nsIComponentManager.h"
#include "nsStaticAtom.h"
#include "nsSchemaAtomList.h"

Go to the source code of this file.


class  LoadListener


#define SCHEMA_ATOM(_name, _value)   nsIAtom* nsSchemaAtoms::_name;
#define SCHEMA_ATOM(_name, _value)   { _value, &nsSchemaAtoms::_name },
#define NS_WSDL_NAMESPACE   ""


 NS_IMPL_ISUPPORTS1 (nsBuiltinSchemaCollection, nsISchemaCollection) NS_IMETHODIMP nsBuiltinSchemaCollection
static PRBool IsSchemaNamespace (const nsAString &aNamespace)
static PRBool IsSOAPNamespace (const nsAString &aNamespace)
 NS_IMPL_ISUPPORTS2_CI (nsSchemaLoader, nsISchemaLoader, nsISchemaCollection) NS_IMETHODIMP nsSchemaLoader
PRBool ParseQualifiedName (nsIDOMElement *aContext, const nsAString &aQualifiedName, nsAString &aPrefix, nsAString &aLocalName, nsAString &aNamespaceURI)


static const nsStaticAtom atomInfo []
static const char * kSchemaNamespaces []
static PRUint32 kSchemaNamespacesLength = sizeof(kSchemaNamespaces) / sizeof(const char*)

Define Documentation

#define NS_WSDL_NAMESPACE   ""
#define SCHEMA_ATOM (   _name,
)    nsIAtom* nsSchemaAtoms::_name;

Definition at line 78 of file nsSchemaLoader.cpp.

#define SCHEMA_ATOM (   _name,
)    { _value, &nsSchemaAtoms::_name },

Definition at line 78 of file nsSchemaLoader.cpp.

Function Documentation

static PRBool IsSchemaNamespace ( const nsAString &  aNamespace) [static]

Definition at line 261 of file nsSchemaLoader.cpp.

  if (aNamespace.EqualsLiteral(NS_SCHEMA_2001_NAMESPACE) ||
      aNamespace.EqualsLiteral(NS_SCHEMA_1999_NAMESPACE)) {
    return PR_TRUE;
  else {
    return PR_FALSE;
static PRBool IsSOAPNamespace ( const nsAString &  aNamespace) [static]

Definition at line 273 of file nsSchemaLoader.cpp.

  if (aNamespace.EqualsLiteral(NS_SOAP_1_1_ENCODING_NAMESPACE) ||
      aNamespace.EqualsLiteral(NS_SOAP_1_2_ENCODING_NAMESPACE)) {
    return PR_TRUE;
  else {
    return PR_FALSE;

Definition at line 218 of file nsSchemaLoader.cpp.

Definition at line 524 of file nsSchemaLoader.cpp.


  return mSchemas.Get(targetNamespace, aResult) ? NS_OK :
PRBool ParseQualifiedName ( nsIDOMElement aContext,
const nsAString &  aQualifiedName,
nsAString &  aPrefix,
nsAString &  aLocalName,
nsAString &  aNamespaceURI 

Definition at line 1049 of file nsSchemaLoader.cpp.

  nsReadingIterator<PRUnichar> pos, begin, end;
  pos = begin;
  if (FindCharInReadable(PRUnichar(':'), pos, end)) {
    CopyUnicodeTo(begin, pos, aPrefix);
    CopyUnicodeTo(++pos, end, aLocalName);
  else {
    CopyUnicodeTo(begin, end, aLocalName);
  nsCOMPtr<nsIDOM3Node> node(do_QueryInterface(aContext));
  return node->LookupNamespaceURI(aPrefix, aNamespaceURI);

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

Definition at line 82 of file nsSchemaLoader.cpp.

const char* kSchemaNamespaces[] [static]
Initial value:

Definition at line 753 of file nsSchemaLoader.cpp.

PRUint32 kSchemaNamespacesLength = sizeof(kSchemaNamespaces) / sizeof(const char*) [static]

Definition at line 755 of file nsSchemaLoader.cpp.