Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOM to load XML

Status
Not open for further replies.

xtreemnet

Programmer
Aug 9, 2003
88
NZ
Hi

I am using DOM in Visual basic 6 to read a XML document. I am using msxml4.dll. I can read most of the documents. But one document gives an error : "Required attribute 'name' is missing". How ever If I disconnect my machine from internet, it reads without any error.

Any idea why this happens,

Thanks
 
Your document probably has a XSD declaration that points to a remote site. This error is telling you that your document doesn't conform to the remote XSD, and is thus invalid (XSD files define how a XML file is supposed to look).

If you want to continue using that xsd, you will need to supply a name attribute in your document.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Thanks for the reply. I found a workaround for this. I just removed the schema definition, and I could read the document. At the moment its working.
 
Have you contacted the author of the XSD to find out why they want you to include that attribute?

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top