Results 1 to 4 of 4

Thread: QXMLSchema Circular References

  1. #1
    Join Date
    Jun 2014
    Posts
    14
    Qt products
    Qt5
    Platforms
    MacOS X Windows
    Thanks
    3

    Question QXMLSchema Circular References

    Hi,

    I'm currently working with the Amazon MWS API, but having trouble with the amzn-envelope.xsd due to there being circular references. I have looked to find ways around this, but to no avail. The only way I've found would be to make local copies of the schema's and remove the includes myself, as stated here, which I don't want to have to do.

    So, I was wondering if there is any way to handle this in Qt? A way to ignore circular references, or a way to work around it?

    Qt Code:
    1. QUrl url("https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_1_9/amzn-envelope.xsd");
    2. QXmlSchema schema;
    3. schema.load(url);
    To copy to clipboard, switch view to plain text mode 

    Thanks,

    Richard

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: QXMLSchema Circular References

    Just curious, what do you need the schema for?

    Cheers,
    _

  3. #3
    Join Date
    Jun 2014
    Posts
    14
    Qt products
    Qt5
    Platforms
    MacOS X Windows
    Thanks
    3

    Default Re: QXMLSchema Circular References

    to validate my xml before posting request to amazon

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: QXMLSchema Circular References

    Ah, I see, so for testing the correct encoding/escaping of runtime generated data.

    I've only ever used schemas to test the XML generation and that is done as part of continuous integration testing and not at runtime

    Would be interesting to research if circular includes are allowed and if that is an omission in Qt's validator implementation, or if the schemas are actually not valid schemas.

    Cheers,
    _

Similar Threads

  1. Replies: 3
    Last Post: 28th September 2012, 13:54
  2. Replies: 0
    Last Post: 21st September 2011, 16:38
  3. Question about references in C++
    By jano_alex_es in forum General Programming
    Replies: 10
    Last Post: 18th January 2011, 13:19
  4. QXmlSchema, XSD Schema validation problems
    By UVV in forum Qt Programming
    Replies: 0
    Last Post: 2nd February 2010, 12:44
  5. Pointers and references
    By PaceyIV in forum Newbie
    Replies: 10
    Last Post: 27th July 2009, 11:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.