[xsde-users] xml parser error
Jerry Yin
jerry.yin at yahoo.com
Tue Jun 9 21:56:14 EDT 2009
Hi Boris,
Thanks for your response. After compare your driver.cxx with my testing code, I found my code was missing the dialog_info_p.root_namespace (), in the doc_p initialization. I copied this testing code from one example.
Mine:
xml_schema::document_pimpl doc_p (
dialog_info_p.root_parser (),
dialog_info_p.root_name ());
Yours:
xml_schema::document_pimpl doc_p (
dialog_info_p.root_parser (),
dialog_info_p.root_namespace (),
dialog_info_p.root_name ());
After I using your testing code, everything works fine now.
This is a great tool. Thanks a lot!
Jerry
--- On Tue, 6/9/09, Boris Kolpackov <boris at codesynthesis.com> wrote:
From: Boris Kolpackov <boris at codesynthesis.com>
Subject: Re: [xsde-users] xml parser error
To: "Jerry Yin" <jerry.yin at yahoo.com>
Cc: xsde-users at codesynthesis.com
Received: Tuesday, June 9, 2009, 1:37 PM
Hi Jerry,
Jerry Yin <jerry.yin at yahoo.com> writes:
> If I parse the idel.xml, I even got a parser error at (4,34), which
> is the ></dialog-info>
What does the error message say? I tried to do the same thing and
everything worked for me without any errors. I compiled your schema
like this:
xsde cxx-hybrid --generate-parser --generate-aggregate --namespace-map urn:ietf:params:xml:ns:dialog-info= test.xsd
Then I compiled and linked the attached test driver with the generated
code and then ran it on the test file. The output is as expected:
0
full
sip:alice at example.com
Boris
__________________________________________________________________
Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
More information about the xsde-users
mailing list