Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Parser.h File Reference

More...

#include "BridgeStub.h"
#include <iostream.h>
#include <sax/SAXParseException.hpp>
#include <util/XercesDefs.hpp>
#include <sax/ErrorHandler.hpp>
#include <util/PlatformUtils.hpp>
#include <util/XMLString.hpp>
#include <util/XMLUniDefs.hpp>
#include <framework/XMLFormatter.hpp>
#include <util/TranscodingException.hpp>
#include <dom/DOM_DOMException.hpp>
#include <parsers/DOMParser.hpp>
#include <dom/DOM.hpp>
#include <dom/DOMString.hpp>
#include "DOMTreeErrorReporter.h"
#include "DOMPrintFormatTarget.h"
#include <framework/MemBufInputSource.hpp>

Go to the source code of this file.

Defines

#define PARSER_H   1
 Include protection. More...


Functions

ostream& operator<< (ostream &target, const DOMString &s)
 Global streaming operator for DOMString is defined in DOMPrintFormatTarget.cpp. More...

void addComment (DOM_Document &doc, DOM_Node &node, const char *rem)
 Insert a comment in the DOM document under the node. More...

void addTextI (DOM_Document &doc, DOM_Node &node, int num)
 Insert an integer value as text in the DOM document under the node. More...

void addTextU (DOM_Document &doc, DOM_Node &node, unsigned int num)
 Insert an unsigned value as text in the DOM document under the node. More...

void addTextD (DOM_Document &doc, DOM_Node &node, double num)
 Insert a floating point value as text in the DOM document under the node. More...

void addTextC (DOM_Document &doc, DOM_Node &node, XMLCh bt)
 Insert a single character as a text node in the DOM document under the node. More...

void addText (DOM_Document &doc, DOM_Node &node, const char *st)
void addText (DOM_Document &doc, DOM_Node &node, unsigned short *st)
 Insert a wide string as a text node in the DOM document under the node. More...

DOM_Element addElement (DOM_Document &doc, DOM_Node &node, const char *st)
 Insert a new element in the DOM document under the node. More...

void createEmptySoap (DOM_Document &doc, DOM_Element &soapEnvelope, DOM_Element &soapBody)
 Create a 'standard' empty SOAP packet. More...

void addHeader (DOM_Document &doc, DOM_Element &envel, DOM_Element &soapHeader, const char *objRef=NULL, const char *ctxKey=NULL, const char *soapAction=NULL)
 Add a header to a SOAP packet. More...

void importHeader (DOM_Document &doc, DOM_Element &envel, DOM_Element &soapHeader)
 Import a header to a SOAP packet from another DOM document. More...

CString DOM2CS (DOMString &ds)
CString DOM2CS (DOM_Element &el)
 Extract all TEXT_NODES from an ELEMENT_NODE and return them as a CString. More...


Detailed Description

Definition in file Parser.h.


Define Documentation

#define PARSER_H   1
 

Include protection.

Definition at line 26 of file Parser.h.


Function Documentation

CString DOM2CS ( DOM_Element & el )
 

Extract all TEXT_NODES from an ELEMENT_NODE and return them as a CString.

Definition at line 671 of file Parser.cpp.

Referenced by CorbaSoap::FillInDynAny(), and SOAPBridge_SOAPCall_i::invokeAction().

CString DOM2CS ( DOMString & ds )
 

void addComment ( DOM_Document & doc,
DOM_Node & node,
const char * rem )
 

Insert a comment in the DOM document under the node.

Parameters:
doc   The DOM.
node   The Node.
rem   The remark to insert.

Definition at line 480 of file Parser.cpp.

Referenced by CorbaSoap::DynAny2Xml().

DOM_Element addElement ( DOM_Document & doc,
DOM_Node & node,
const char * st )
 

Insert a new element in the DOM document under the node.

Parameters:
doc   The DOM.
node   The Node.
st   The name of the element to create and insert.

Definition at line 580 of file Parser.cpp.

Referenced by CorbaSoap::DynAny2Xml(), addHeader(), createEmptySoap(), AnyInterface::invoke(), SOAPBridge_SOAPCall_i::invokeAction(), and SOAPBridge_SOAPCall_i::soapFault().

void addHeader ( DOM_Document & doc,
DOM_Element & envel,
DOM_Element & soapHeader,
const char * objRef = NULL,
const char * ctxKey = NULL,
const char * soapAction = NULL )
 

Add a header to a SOAP packet.

Parameters:
doc   The DOM document.
envel   Must be the SOAP envelope element.
header   The newly inserted SOAP header element.

Definition at line 625 of file Parser.cpp.

Referenced by AnyInterface::invoke().

void addText ( DOM_Document & doc,
DOM_Node & node,
unsigned short * st )
 

Insert a wide string as a text node in the DOM document under the node.

Parameters:
doc   The DOM.
node   The Node.
st   The string to insert.
Todo:
must be tested

Definition at line 567 of file Parser.cpp.

Referenced by CorbaSoap::DynAny2Xml(), CorbaSoap::TypeConversion(), addHeader(), and SOAPBridge_SOAPCall_i::soapFault().

void addText ( DOM_Document & doc,
DOM_Node & node,
const char * st )
 

void addTextC ( DOM_Document & doc,
DOM_Node & node,
XMLCh bt )
 

Insert a single character as a text node in the DOM document under the node.

Parameters:
doc   The DOM.
node   The Node.
bt   The character (can be wide) to insert.
Todo:
wide chars must be tested

Definition at line 539 of file Parser.cpp.

Referenced by CorbaSoap::DynAny2Xml().

void addTextD ( DOM_Document & doc,
DOM_Node & node,
double num )
 

Insert a floating point value as text in the DOM document under the node.

Parameters:
doc   The DOM.
node   The Node.
num   The floating point number to insert.

Definition at line 523 of file Parser.cpp.

Referenced by CorbaSoap::DynAny2Xml().

void addTextI ( DOM_Document & doc,
DOM_Node & node,
int num )
 

Insert an integer value as text in the DOM document under the node.

Parameters:
doc   The DOM.
node   The Node.
num   The integer number to insert.

Definition at line 493 of file Parser.cpp.

Referenced by CorbaSoap::DynAny2Xml().

void addTextU ( DOM_Document & doc,
DOM_Node & node,
unsigned int num )
 

Insert an unsigned value as text in the DOM document under the node.

Parameters:
doc   The DOM.
node   The Node.
num   The unsigned number to insert.

Definition at line 508 of file Parser.cpp.

Referenced by CorbaSoap::DynAny2Xml().

void createEmptySoap ( DOM_Document & doc,
DOM_Element & soapEnvelope,
DOM_Element & soapBody )
 

Create a 'standard' empty SOAP packet.

Parameters:
doc   Contains a new DOM document on return.
soapEnvelope   The root element of the SOAP packet.
soapBody   The body element of the SOAP packet.

Definition at line 608 of file Parser.cpp.

Referenced by AnyInterface::invoke(), SOAPBridge_SOAPCall_i::invokeAction(), and SOAPBridge_SOAPCall_i::soapFault().

void importHeader ( DOM_Document & doc,
DOM_Element & envel,
DOM_Element & soapHeader )
 

Import a header to a SOAP packet from another DOM document.

Parameters:
doc   The DOM document.
envel   Must be the SOAP envelope element.
header   The SOAP header element to import.

Definition at line 653 of file Parser.cpp.

Referenced by SOAPBridge_SOAPCall_i::invokeAction().

ostream& operator<< ( ostream & target,
const DOMString & s )
 

Global streaming operator for DOMString is defined in DOMPrintFormatTarget.cpp.


This documentation is part of the "SOAP to CORBA bridge" project
Copyright © 2000 by Lifeline Networks bv.
All rights are reserved.