Results 1 to 5 of 5

Thread: XML Validation

  1. #1
    Join Date
    Apr 2008
    Posts
    196
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    1

    Default XML Validation

    Hey @all,

    did anybody know a way how i can validate a XML file with DTD or XSD (XML-Schema) ?
    I only find QXmlDTDHandler and I think this is only an abstract class.
    Currently I verify the XML file using QProcess with xmllint, but i don't want to use external programs for that when Qt has already a XML class.

    Regards

  2. #2
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: XML Validation

    The Qt xml modules current do not support validation.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: XML Validation

    I don't think there is direct support for this in Qt.

  4. #4
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: XML Validation

    Quote Originally Posted by wysota View Post
    I don't think there is direct support for this in Qt.
    You don't need to think here. There isn't.

    However, there might be something in the solutions.

  5. #5
    Join Date
    Sep 2010
    Location
    Moscow
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: XML Validation

    Now Qt has support of XSD validation. I've use it in 4.6 version

Similar Threads

  1. Ip Address Validation
    By bruccutler in forum Qt Programming
    Replies: 26
    Last Post: 3rd November 2010, 03:58
  2. validation on an IP address
    By rajveer in forum Qt Programming
    Replies: 15
    Last Post: 24th August 2008, 00:35
  3. Suggestions for validation XML with XSD
    By estanisgeyer in forum Qt Programming
    Replies: 1
    Last Post: 12th June 2008, 19:00
  4. QLineedit Multiple Validation
    By csvivek in forum Qt Programming
    Replies: 13
    Last Post: 4th May 2008, 20:04
  5. Unique ID for a PC to use for Key Validation
    By nbkhwjm in forum Qt Programming
    Replies: 1
    Last Post: 9th April 2008, 23:13

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.