Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Schema questions - cross document identity constraints.

Thread Tools

Schema questions - cross document identity constraints.

Russell Thamm
Posts: n/a

my application uses several XML documents.

I want to know if there is any way to define identity constraints
across documents.


Doc A

<xxx-object id="fred"/>
<xxx-object id="james"/>
<xxx-object id="charley"/>

Doc B

<yyy-object id="red" xxx="fred"/>
<yyy-object id="yellow" xxx="james"/>

The allowable values of attribute xxx (yyy-object) are as defined
in document A.

If A and B were a single document, it is relatively simple to define Identity

The only idea that I have to handle this is:

1) Parse all the documents used by an application.
2) Construct a single DOM document from these.
3) Write out the single document. (Xerces-c can't validate data in a DOM tree)
4) Parse this single document checking against my schema.

This seems pretty messy.
It also means that many schema types will be used in at least two documents.

Are there better solutions to this problem?
Is there any good documentation that discusses issues like this?

Russell Thamm
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 2.0 Impersonation of fixed identity - truncation of identity JimLad ASP .Net 0 01-16-2009 10:42 AM
HttpContext.Current.User.Identity.Name AND Context.User.Identity.Name; nalbayo ASP .Net 2 11-11-2005 11:12 PM
Issue with Identity Impersonation and user identity used passed for trusted SQL connection. Frederick D'hont ASP .Net Security 0 07-25-2005 02:41 PM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
Difference between HttpContext.Current.User.Identity and identity Impersonation Giovanni Bassi ASP .Net 0 10-20-2003 02:25 PM