Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XML - XBRL Validation

From: George@-----------.---------.---
To: NULL
Date: 10/2/2006 1:08:00 AM

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