Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 334687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:04:42+00:00 2026-05-12T10:04:42+00:00

I am using xmllint –schema option to validate my XML that looks like this

  • 0

I am using xmllint –schema option to validate my XML that looks like this

<XML>
<Active>True</Active>
</XML>

In my schema file, I have following line that describes Active element.

<xsd:element name="Active" type="xs:boolean" />

When I run xmllint, I get error messages that says

/tmp/schema_validation.xml:73: element
Active: Schemas validity error :
Element ‘Active’: ‘True’ is not a
valid value of the atomic type
‘xs:boolean’.

When I change the XML to

<Active>true</Active>

Then the error message disappears.

So, it looks like xsd:boolean means it’s all lowercase “true/false” but not “True/False” to xmllint.. My question is, how can I make xmllint to accept “True” for xsd:boolean type? Or is there different tools that I can use that will validate this XML? Changing the XML or schema is not my option at this point.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:04:42+00:00Added an answer on May 12, 2026 at 10:04 am

    You cannot.

    According to the XML Schema specification, a boolean is true or false. True is not valid:

    
      3.2.2.1 Lexical representation
      An instance of a datatype that is defined as ·boolean· can have the 
      following legal literals {true, false, 1, 0}. 
    
      3.2.2.2 Canonical representation
      The canonical representation for boolean is the set of 
      literals {true, false}. 
    

    If the tool you are using truly validates against the XML Schema standard, then you cannot convince it to accept True for a boolean.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with an XML list at the moment, which looks like this:
I have an xml document like the below one that I am trying to
I have exported data .xls file using as3. var xml:ArrayCollection; xml=Labneuron8.lastResult.Response.Terminal as ArrayCollection; var
I have this xml file. var xml:XML = <rootNode> <element name=CompositeFont> <attribute name=Self> <data
I have XML documents like: <rootelement> <myelement>test1</myelement> <myelement>test2</myelement> <myelement type='specific'>test3</myelement> </rootelement> I'd like to
I would like to map F5 to format the current buffer using xmllint --format
Hello all I'm using NSXMLParser to parse some xml data. I'm using this data
I have a SQL database that I'm using LINQ to connect to (LINQ To
i'm writing a small script that parse an rss using xmllint. Now i fetch
I am using woodstox to implement a StAX parser for XML files. Assume that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.