Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML - XBRL Validation

From: "Zafar Abbas" <someone@---------.--->
To: NULL
Date: 10/2/2006 1:01:00 PM

The problem you are seeing is not for validation of the attribute's 
namespace. it is becuase you do not have the prefix d-ty mapped to a 
namespace-uri. When you construct the XmlSchemaValidator [1], you need to 
pass in a Namespace Resolver which maps it to a namespace.

[1] 
http://msdn2.microsoft.com/en-us/library/system.xml.schema.xmlschemavalidator.xmlschemavalidator.aspx


"Zafar Abbas" <someone@s...> wrote in message 
news:e$qqSyl5GHA.4608@T......
> The validator is failing find a namespace for the 'd-ty' prefix. Do you 
> have the schema for that namespace added to the schema set?
>
>
>
> "George" <George@d...> wrote in message 
> news:B0C32C7D-370E-466B-ACB8-F7E4D7C25C5E@m......
>>I am currently developing an xbrl validation software that takes an xml
>> instance file and a lot of schemas(xsd files) and  validates it against 
>> the
>> xsd files.  I am using Visual basic in visual studio 2005. I have managed 
>> to
>> cycle through the xml file , validate most of the variables, however, i 
>> have
>> some problems with the namespaces of some attributes.
>>
>> For example, in my xml instance file,  it says:
>>
>> <xbrldi:typedMember dimension="d-ty:NationalMarketDimension">
>>        <d-ty:NationalMarket>base metals</d-ty:NationalMarket>
>>      </xbrldi:typedMember>
>>
>> In this case, the attribute name is "dimension" and
>>                  the attribute value is "d-ty:NationalMarketDimension".
>> The problem is that "dimension" variable is in one namespace, and
>> "d-ty:NationalMarketDimension" is in another namespace. i execute the
>> following code:
>>
>> validator.ValidateAttribute(reader.name, reader.NamespaceURI,
>> reader.valuevalue, schemainfo)
>>
>> It validates the name "dimension" correctly with the correct namespace,
>> however, the value "d-ty:NationalMarketDimension" should be validated 
>> using
>> the d-ty namespace, which is another x-sd file.
>> The error i get is :
>> Error Message:The 'dimension' attribute is invalid - The value
>> 'd-ty:NationalMarketDimension' is invalid according to its datatype
>> 'http://www.w3.org/2001/XMLSchema:QName' - 'd-ty' is an undeclared 
>> namespace.
>>
>> Can anyone help ?
>> Thank you
>>
>>
>
> 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent