Results 1 to 2 of 2

Thread: Xml tags

  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Xml tags

    Hello,
    I'd like to know if these below are valid xml lines:
    Qt Code:
    1. <element name = " PartRequest " >
    2. < element name="PartRequest ">
    3. <element name="PartRequest " / >
    To copy to clipboard, switch view to plain text mode 
    If not, why?!

    thanks,


    EDIT: are those "spaces" licit???
    Regards

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Xml tags

    According to this section of the definition non of your posted codes is correct. But I guess most parser will accept it...
    [40] STag ::= '<' Name (S Attribute)* S? '>'
    [41] Attribute ::= Name Eq AttValue
    top 1) no withe space between name and AttValue
    top 2) no white space after the opening bracket
    top 3) empty tags must end with "/>". there is also no white space allowed.

    EDIT:
    since
    Eq ::= S? '=' S?
    1 is valid.
    Last edited by Lykurg; 16th September 2009 at 22:48. Reason: updated contents

Similar Threads

  1. Html tags in QTreeView
    By 1111 in forum Qt Programming
    Replies: 1
    Last Post: 13th March 2009, 01:41
  2. QFontMetrics and HTML tags
    By vonCZ in forum Newbie
    Replies: 1
    Last Post: 14th August 2008, 12:13
  3. QTextBrowser, add support for custom tags
    By qtcos in forum Qt Programming
    Replies: 3
    Last Post: 29th December 2007, 16:43
  4. Replies: 1
    Last Post: 17th March 2006, 08:01

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.