Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

MSXML2.DOMDocument40 and XML schemas

Hi all,

I've been messing around with MS's DOM parser, trying to validate a document against a schema. I've got the following XML doc:

<?xml version="1.0"?>


lamont adams
my book
fantasy
26.99
2005-12-31
it's fantasy till I write it



I haven't been able to get the parser to automatically load the associated schema when the document is loaded. When I load the schema into the DOMDocument40.schemas schema cache, and validate the document I get an error: "The attribute 'noNamespaceSchemaLocation' on this element is not defined in the DTD/Schema." Well, of course it isn't.

The document validates fine in XMLSpy, so I'm not sure what's up here. I initially thought this was a bug, but there's nothing in the MSKB about it, so I assume I'm not doing something with DOMDocument40 that I'm supposed to in order to make this work.

Any help or suggestions would be appreciated.

Comments

  • Chris BrownChris Brown USAMember Posts: 4,496 ✭✭

    __ < http://forcoder.org /> free ebooks and video tutorials about ( Visual Basic, C, Delphi, Visual Basic .NET, MATLAB, R, Swift, Assembly, Java, Objective-C, Scratch, JavaScript, PL/SQL, Ruby, C#, C++, Perl, Python, PHP, Go LabVIEW, Transact-SQL, Lua, Julia, Kotlin, ML, Prolog, Scheme, Alice, ABAP, Scala, Rust, Bash, Lisp, VBScript, Ada, Dart, Logo, Erlang, Clojure, Crystal, Fortran, Hack, Apex, Awk, COBOL, F#, FoxPro, D, SAS ) ___________

Sign In or Register to comment.