Generating schemas - XML SOAP

This is a discussion on Generating schemas - XML SOAP ; I need to generate schemas using native C++. If anyone knows of relevant samples or such then that might help. I have begun and I hopefully have enough of a beginning that I expect to be able to do it ...

+ Reply to Thread
Results 1 to 3 of 3

Generating schemas

  1. Default Generating schemas

    I need to generate schemas using native C++. If anyone knows of relevant
    samples or such then that might help. I have begun and I hopefully have
    enough of a beginning that I expect to be able to do it with the major
    problem being simply learning about schemas. The code I have so far uses
    MSXML2::IXMLDOMDocument in msxml4.dll and related classes. Relevant articles
    and samples would (as I say) likely help.

    The reason I need to generate a schema from code is that I will be doing
    something such as exporting database tables and the tables to be exported
    varies. So instead of creating one huge schema I intend to generate a schema
    that defines just the tables that exist in the XML.




  2. Default Re: Generating schemas

    On 24 Feb, 01:07, "Sam Hobbs"
    <sam...@social.rr.com_change_social_to_socal> wrote:
    > I need to generate schemas using native C++. If anyone knows of relevant
    > samples or such then that might help. I have begun and I hopefully have
    > enough of a beginning that I expect to be able to do it with the major
    > problem being simply learning about schemas. The code I have so far uses
    > MSXML2::IXMLDOMDocument in msxml4.dll and related classes. Relevant articles
    > and samples would (as I say) likely help.
    >
    > The reason I need to generate a schema from code is that I will be doing
    > something such as exporting database tables and the tables to be exported
    > varies. So instead of creating one huge schema I intend to generate a schema
    > that defines just the tables that exist in the XML.


    You don't say the sorts of things you have read already, so I don't
    know what level you're at already. In case it's helpful, we have a
    basic schema introduction at:

    http://www.codalogic.com/lmx/xsd-overview.html

    There's also the w3c XSD primer at:

    http://www.w3.org/TR/xmlschema-0/

    On a different note, I was wondering if you had considered doing a
    generic XML schema for exporting SQL tables. I'm no great expert on
    SQL, but I'd have thought an XML schema for the rows of a SQL table
    ought to be quite straight forward. Then a generic piece of code can
    export a table, and a generic piece of code can re-constitute it.
    Mind you, (discussing with myself!) if that's all you want to do I
    guess you might as well just ship around the SQL!

    HTH,

    Pete Cordell
    Codalogic
    For XML C++ data binding visit http://www.codalogic.com/lmx/

  3. Default Re: Generating schemas

    <usenet@tech-know-ware.com> wrote in message
    news:9945e759-e2a8-4e7a-aa39-01381ae36ac3@v3g2000hsc.googlegroups.com...
    >
    > You don't say the sorts of things you have read already, so I don't
    > know what level you're at already. In case it's helpful, we have a
    > basic schema introduction at:
    >
    > http://www.codalogic.com/lmx/xsd-overview.html


    Thank you, I will look at it.

    > There's also the w3c XSD primer at:
    >
    > http://www.w3.org/TR/xmlschema-0/


    Yes I have definitely seen it. I postponed reading it but now that I have
    eliminated the others I will use that one. My other question about
    ElementType helped since I now know to ignore the tutorials that use
    ElementType. Of course I might postpone using the W3C tutorial in favor of
    yours.

    > On a different note, I was wondering if you had considered doing a
    > generic XML schema for exporting SQL tables.


    My situation is a bit different. I said it is like a DB export but it is not
    a DB export. It is more like log records in which database changes are
    written to a log. So my requirements are more dynamic. The code would be
    quite similar of course.

    Existing database systems have export capability and all the major database
    software can export XML, correct? For me, the data is unique to my
    application. In what situation and/or for what software is a custom export
    needed?




+ Reply to Thread