sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
defcon00's Avatar

Input of Xerces parser


Question posted by: defcon00 (Newbie) on October 3rd, 2008 04:40 PM
Hi,

How can creat a parser with cerces-c for read XML data directly of a char buffer ? I can only samples with the XML data is read of a file.

Thanks.
2 Answers Posted
Dormilich's Avatar
Dormilich October 3rd, 2008 05:11 PM
Expert - 596 Posts
#2: Re: Input of Xerces parser

in which programming language occurs this problem? (Java docs say that input stream is supported)
jkmyoung's Avatar
jkmyoung October 3rd, 2008 10:48 PM
Moderator - 868 Posts
#3: Re: Input of Xerces parser

Assuming you mean Xerces-C, I'm assuming by char buffer you mean that you want to create a SAX parser?

I'm guessing you want to use these 2 functions:
http://www.saxproject.org/apidoc/or...ax.InputSource)
http://www.saxproject.org/apidoc/or...java.io.Reader)

You need to create a java.io.Reader encapsulating the character stream and then encapsulate that in an input source, before sending it to the XMLReader to be parsed.
Reply
Not the answer you were looking for? Post your question . . .
197,020 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 197,020 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top XML Contributors