Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > question on parsing result by Xerxes

Thread Tools

question on parsing result by Xerxes

Posts: n/a
Dear c++ experts:
I tried to using Xerxes and its SAX2 to parsing some xml with
namespace. some pieces codes I copied from
book(c++ cookbook), page 497, 498, 499, 500, 501
, especially its main xml file is
<?xml version="1.0" encoding="UTF-8"?>

<!-- Feldman Family Circus Animals with Namespaces -->

<ffc:animalList xmlns:ffc="">
<ffc:veterinarian name="Dr. Hal Brown" phone="(801)595-9627"/>
<ffc:trainer name="Bob Fisk" phone="(801)881-2260"/>
<ffc:veterinarian name="Dr. Kevin Wilson"
<ffc:trainer name="Eli Wendel" phone="(801)929-2506"/>
<ffc:veterinarian name="Dr. Barbara Swayne"
<ffc:trainer name="Ben Waxman" phone="(801)882-3549"/>

<!-- etc. -->

but I got result as (on my g++4.5.2 in linux2.6.38-10 kernel)
root@eric-laptop:/home/eric/cppcookbook/ch14# ./a.out
worng namespace uri:
is that the right result?
I suspect it.
because in the same chapter, previous section, which example using
Tinyxml to parse some more simpler
xml file(without namespace), I got pretty reasonable result, which
Echo the content in xml file orderly.
please give your comment and thanks a lot in advance, Eric
Reply With Quote
red floyd
Posts: n/a
On 8/9/2011 9:45 PM, eric wrote:
> [off topic redacted]

This is a FAQ. The answer to your question may be found in FAQ 5.9

Your question has nothing to do with the C++ language proper.

Please try a newsgroup with either XML or XERCES in its name.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
i = 10; result = ++i - --i; How result become ZERO Lakshmi Sreekanth C Programming 52 09-23-2010 07:41 AM
Is the result of valid dynamic cast always equal to the result ofcorrespondent static cast? Pavel C++ 7 09-18-2010 11:35 PM
simulation result is correct but synthesis result is not correct J.Ram VHDL 7 12-03-2008 01:26 PM
1. Ruby result: 101 seconds , 2. Java result:9.8 seconds, 3. Perl result:62 seconds Michael Tan Ruby 32 07-21-2005 03:23 PM
web.xml, jboss and xerxes Juergen Java 4 08-12-2004 10:55 AM