reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
XMLCursor.cxx File Reference

Go to the source code of this file.

Macros

#define RESIPROCATE_SUBSYSTEM   Subsystem::CONTENTS
 

Functions

static const Data COMMENT_START ("<!--")
 

Variables

static char BANG [] = "!"
 Whitespace handling: Are the following XML fragments equivalent?
 
static char HYPHEN [] = "-"
 
static char LA_QUOTE [] = "<"
 
static char RA_QUOTE [] = ">"
 
static char SLASH [] = "/"
 
static char EQUALS [] = "="
 
static char DOUBLE_QUOTE [] = "\""
 
static char SINGLE_QUOTE [] = "\'"
 
static const Data COMMENT_END ("-->")
 
static const Data QUESTION_RA_QUOTE ("?>")
 
static const Data RA_QUOTE_SLASH (">/")
 
static Data SLASH_RA_QUOTE ("/>")
 

Macro Definition Documentation

◆ RESIPROCATE_SUBSYSTEM

#define RESIPROCATE_SUBSYSTEM   Subsystem::CONTENTS

Definition at line 12 of file XMLCursor.cxx.

Function Documentation

◆ COMMENT_START()

static const Data COMMENT_START ( )
static

Variable Documentation

◆ BANG

char BANG[] = "!"
static

Whitespace handling: Are the following XML fragments equivalent?

Strictly interpreted, the root of the first XML document has one child while the root of the second XML doucment has three children. The line breaks and spaces after the <root> and before </root> are tagless children.

—> <root><child>child content</child></root> <– vs. —> <root> <child>child content</child> </root> <–

Treating whitespace as children is consistent with the spec but not usually convenient. <!ATTLIST poem xml:space (default|preserve) 'preserve'> is used to control whitespace handling. Supporting this switch is painful. For now, treat whitespace as non-significant.

Definition at line 39 of file XMLCursor.cxx.

◆ COMMENT_END

const Data COMMENT_END("-->") ( "-->"  )
static

◆ DOUBLE_QUOTE

char DOUBLE_QUOTE[] = "\""
static

Definition at line 45 of file XMLCursor.cxx.

◆ EQUALS

char EQUALS[] = "="
static

Definition at line 44 of file XMLCursor.cxx.

◆ HYPHEN

char HYPHEN[] = "-"
static

Definition at line 40 of file XMLCursor.cxx.

◆ LA_QUOTE

char LA_QUOTE[] = "<"
static

Definition at line 41 of file XMLCursor.cxx.

◆ QUESTION_RA_QUOTE

const Data QUESTION_RA_QUOTE("?>") ( "?  ,
"   
)
static

◆ RA_QUOTE

char RA_QUOTE[] = ">"
static

Definition at line 42 of file XMLCursor.cxx.

◆ RA_QUOTE_SLASH

const Data RA_QUOTE_SLASH(">/") ( "  ,
/"   
)
static

◆ SINGLE_QUOTE

char SINGLE_QUOTE[] = "\'"
static

Definition at line 46 of file XMLCursor.cxx.

◆ SLASH

char SLASH[] = "/"
static

Definition at line 43 of file XMLCursor.cxx.

◆ SLASH_RA_QUOTE

Data SLASH_RA_QUOTE("/>") ( "/  ,
"   
)
static