From e3f6ea7e91a85747781e0f81c07067c6aa9f9435 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 8 Nov 2006 15:38:06 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=11496 --- checkin_notes | 7 +++++++ lib/parse.C | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index f6156ac4a1..629c5847b3 100755 --- a/checkin_notes +++ b/checkin_notes @@ -12411,3 +12411,10 @@ David 7 Nov 2006 cs_scheduler.C lib/ miofile.C + +David 8 Nov 2006 + - core client: change XML parser to handle tags of the form , + treating it as (i.e. skip the space) + + lib/ + parse.C diff --git a/lib/parse.C b/lib/parse.C index 6fd8ad9c47..1c0731c2e3 100644 --- a/lib/parse.C +++ b/lib/parse.C @@ -437,14 +437,16 @@ bool XML_PARSER::scan_nonws(int& first_char) { } // we just read a <; read until we find a >, -// and copy intervening text to buf. +// and copy intervening text (except spaces) to buf. // Return true iff reached EOF +// TODO: parse attributes too // bool XML_PARSER::scan_tag(char* buf, int len) { int c; while (1) { c = f->_getc(); if (c == EOF) return true; + if (isspace(c)) continue; if (c == '>') { *buf = 0; return false;