See Also: "Introduction to the XML Parsing for Java" for a generic introduction to XML parsing with DOM and SAX.Much of the information in the introduction is language-independent and applies equally to C.The Oracle XML parser for C reads an XML document and uses DOM or SAX APIs to provide programmatic access to its content and structure.
The C XDK API provides full support for DOM Level 1 and 2, but no support for Level 3.
You can find links to the specifications for all three levels at the following URL: SAX is available in version 1.0, which is deprecated, and 2.0. The C XDK API provides full support for both SAX 1.0 and 2.0.
You can find the documentation for SAX at the following URL: XML events is a representation of an XML document which is similar to SAX events in that the document is represented as a sequence of events like start tag, end tag, comment, and so on.
The difference is that SAX events are driven by the parser (producer) and XML events are driven by the application (consumer).
ensure that your environment is set up as described in "Setting C XDK Environment Variables on UNIX" and "Setting C XDK Environment Variables on Windows".
Use the following syntax on the command line to invoke ELEMENT 2 PCDATA 1 DOC 1 DTD 1 ELEMDECL 2 ATTRDECL 3 TOTAL 10 * 112 = 1120 +---ELEMENT doc [nsprefix:a1='v1'*, xmlns=' xmlns:nsprefix= ' +---ELEMENT child +---PCDATA " This element inherits the default Namespace of doc.
" or MIME header of the document can also specify an encoding.
If the application cannot determine the specific encoding, then it applies the default input encoding.
If you do not provide a default, then the application assumes UTF-8 on ASCII platforms and UTF-E on EBCDIC platforms.