[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parser for a XML
Hi Gregorio,
I haven't worked with Xerces. If you want to try doing your parsing
with Expat, you'll find information at the following link:
http://www.scottklement.com/expat/
When you work with Expat, you have to feed the XML data manually into the
XML parser by calling the XML_parse() function, and passing your data as a
parameter.
If you want to read from a file, you can do that, but you have to write
the code to read the file and then pass the data along to the parser.
If you want to decode data that's in a variable, then you just pass that
variable to the parser. Should be easy.
That's the way Expat works. Check out that link if you want more info. If
you need to use Xerces or another IBM tool, you need to get help from
them. I don't work with that.
---
Scott Klement http://www.scottklement.com
On Thu, 3 Nov 2005, [iso-8859-1] Gregorio Alarcón B. wrote:
Hi Scott, i have a basic problem with an rpgile program and xml parser.
The program must read a xml from a local variable, not from a file. We
have been analyzing the "QxmlXercesDOMParser_parse_SystemId" function
but this only read a XML document from a file. Do you know like doing
this?
Our final objective is upload the values of xml's elements in a *FILE.
Best Regards,
Gregorio.