470,588 Members | 2,126 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,588 developers. It's quick & easy.

Switch between "external"/"internal" schemaLocation (xerces/xalan c++)

Hi all!

I have a little(?) problem with external schema location...

I'm using xerces/xalan (C++) for doing some actions with some set of xml-files.

Some of these files must validating against schema, which location specify in config file ("external" schema). Other files must be validating against schema, which location specify in parsed xml file (via xsi:shemaLocation attribute, "internal" schema)

How can I switch between these schema location ("external"/"internal")? I mean, if I use
Expand|Select|Wrap|Line Numbers
  1. theLiaison->setExternalNoNamespaceSchemaLocation("blah.xsd")
for file foo.xml, then all next files bar1.xml, bar2.xml... bar666.xml etc. will be validating against this "external" schema (blah.xsd), but it must validate against "internal" schema. There are some function like a
Expand|Select|Wrap|Line Numbers
  1. useInternalSchemaLocation(true)
or other simple way to do this?

I'm looking for this in apache site and search on this forum, but don't find anything (

PS Sorry for my English )
Apr 16 '07 #1
2 2269
839 Expert 512MB
I will move the thread to the C++ forum, there you may get the answer faster.
Apr 17 '07 #2
9,208 Expert Mod 8TB
Why isn't the validation code checking the setting from:


before doing an external validation?
Apr 17 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by Mark A. Gibbs | last post: by
8 posts views Thread by TTroy | last post: by
12 posts views Thread by G Patel | last post: by
19 posts views Thread by ccwork | last post: by
14 posts views Thread by Jess | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.