Hi all!
          There is a Prolog in XML document by default,
                              <?xml version="1.0" encoding="UTF-8" ?>
          The api I have to pass my XML stream requires me to pass an additional Top Level Tag,
                   <?qbxml version="2.0" ?>

          so the stream starts with,
                           <?xml version="1.0"
encoding="UTF-8" ?>
                           <?qbxml version="2.0" ?>
                           <QBXML>
                                    <QBXMLMsgsRq
                                  
                                                 --------------------
                                   

                                    </QBXMLMsgsRq>
                             </QBXML>
             as in the above stream there a 2 prolog or header elements, xml and qbxml. XML is created by default, but how to create, the next one i.e.
<?qbxml version=" 2.0" ?>, with the api's in org.w3c.dom package, or by the help of some other xerces package.for example sax packages. there are method calls to create Elements, Processing instructions, but no method for creating the prolog or top level headers, starting with <? ........?>, in the Document class, or I couldn't find one.


The 2nd question I had was!
             There are so many libraries, e.g. Crimson, Xerces, Xalan, XMLBeans, SAX, DOM, how are these api's related or differentiate from one another, which api should be used where. why so many api's. Anyone pointing me to some articles, or tutorial, I will be highly obliged, as I am new to XML so wanted to have a clear understanding.

               I am generating XML programmatically and then sending the stream to another program, I am not getting it from a document, so which api is best for sophisticated manipulation and generation of XML.

Any body answering these questions, or any one question, I would be thankfull. I am waiting eagerly.

Thanks and regards,
Babar Abbas.

Reply via email to