Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. How to allow boolean 'TRUE' or 'True' in xml

How to allow boolean 'TRUE' or 'True' in xml

Scheduled Pinned Locked Moved XML / XSL
xmlhelptutorial
9 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zxc89
    wrote on last edited by
    #1

    Hi all, How to allow the boolean value 'True' or 'TRUE' in a XML file. Generally when we specify the restriction in xsd as When this is specified in xsd, it allows only 'true' 'false' or 0 or 1. How does this allow 'True' or 'TRUE' in XML. Please Help.. Thanks.

    S 1 Reply Last reply
    0
    • Z zxc89

      Hi all, How to allow the boolean value 'True' or 'TRUE' in a XML file. Generally when we specify the restriction in xsd as When this is specified in xsd, it allows only 'true' 'false' or 0 or 1. How does this allow 'True' or 'TRUE' in XML. Please Help.. Thanks.

      S Offline
      S Offline
      Stefan Troschuetz
      wrote on last edited by
      #2

      Cannot see the xsd snippet. Either turn all < into &am;lt; or check the "Ignore HTML tags in this message" beneath the smilies.


      "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

      www.troschuetz.de

      Z 1 Reply Last reply
      0
      • S Stefan Troschuetz

        Cannot see the xsd snippet. Either turn all < into &am;lt; or check the "Ignore HTML tags in this message" beneath the smilies.


        "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

        www.troschuetz.de

        Z Offline
        Z Offline
        zxc89
        wrote on last edited by
        #3
        S 1 Reply Last reply
        0
        • Z zxc89
          S Offline
          S Offline
          Stefan Troschuetz
          wrote on last edited by
          #4

          You can define your own type that allows either a standard boolean or some specific string value. "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cookwww.troschuetz.de

          Z 1 Reply Last reply
          0
          • S Stefan Troschuetz

            You can define your own type that allows either a standard boolean or some specific string value. "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cookwww.troschuetz.de

            Z Offline
            Z Offline
            zxc89
            wrote on last edited by
            #5

            Hey Stefan, Thank you very much for the help But when i run the code, i get an error the following error.. Cannot load the schema for the namespace "- The 'http://www.w3.org/2001/XMLSchema:enumeration' element is not supported in this context.. Please let me know about this one too.. Thanks.

            S 1 Reply Last reply
            0
            • Z zxc89

              Hey Stefan, Thank you very much for the help But when i run the code, i get an error the following error.. Cannot load the schema for the namespace "- The 'http://www.w3.org/2001/XMLSchema:enumeration' element is not supported in this context.. Please let me know about this one too.. Thanks.

              S Offline
              S Offline
              Stefan Troschuetz
              wrote on last edited by
              #6

              Hard to say without having more information: What does the code do you that are running? What do you use to work with XML? Also it would be helpful too see more of your schema; at least the component that should contain the extended boolean.


              "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

              www.troschuetz.de

              Z 1 Reply Last reply
              0
              • S Stefan Troschuetz

                Hard to say without having more information: What does the code do you that are running? What do you use to work with XML? Also it would be helpful too see more of your schema; at least the component that should contain the extended boolean.


                "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

                www.troschuetz.de

                Z Offline
                Z Offline
                zxc89
                wrote on last edited by
                #7

                Now this code should allow the usage of 'True' or 'TRUE' or 'False' or 'FALSE'. Please let me know how to modify in your context. Thanks.

                Z 1 Reply Last reply
                0
                • Z zxc89

                  Now this code should allow the usage of 'True' or 'TRUE' or 'False' or 'FALSE'. Please let me know how to modify in your context. Thanks.

                  Z Offline
                  Z Offline
                  zxc89
                  wrote on last edited by
                  #8

                  We are using the schema version:

                  S 1 Reply Last reply
                  0
                  • Z zxc89

                    We are using the schema version:

                    S Offline
                    S Offline
                    Stefan Troschuetz
                    wrote on last edited by
                    #9

                    I have created this schema with VS and it doesn't complain: "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cookwww.troschuetz.de

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups