You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Easy response I am sure....
The following is a snippet of XML that I am developing an Annotated XSD for use with XML Bulk Load into SQL Server 2000.
I can successfully map to 4th level elements i.e. 'root/businessEntity/dgrFund/endorsedFrom' but am unable to map to 5th level elements i.e. 'root/businessEntity/dgrFund/dgrFundName/organisationName'
Ther error I currentl receive using the following files is:
Schema: unable to load schema 'Build_08.01.xsd'. An error occurred (Build_08.01.xsd#/schema[1]/element[position() = 1 and @name = 'businessEntity']/complexType[1]/sequence[1]/element[position() = 2 and @name = 'dgrFund']/complexType[1]/sequence[1]/element[position() = 1 and @name = 'dgrFundName/organisationName']
Error parsing 'dgrFundName/organisationName' as NCName datatype.
A name contained an invalid character.).
You can't name an element 'dgrFundName/organisationName' as the '/' is illegal, just call it 'organisationName'. I'm away from my reference book so can't provide a full working example I'm afraid.