andybeeeeee
Programmer
hi, i'm working on a project to make a kind of "universal schema" for a set of xml files and i need some help.
basically what happens is each file has exactly the same elements, but the attributes on one of the elements varies depending on which file it is. e.g.
is in one file and
is in the next.
Is there one way of making my schema work so that i can write in xml code something along the lines of:
appologies if this makes no sense or if i'm talkin utter jibberish, but i'm a java programmer not an xml one. i've been doin xml for 3 days!
thanks in advance
basically what happens is each file has exactly the same elements, but the attributes on one of the elements varies depending on which file it is. e.g.
Code:
<connection cnid="cnAuthorisation" type="QUERY.ScriptingConnection" name="Authorisation" engine="QueryAxScripting.AxScripting" language="JScript">
is in one file and
Code:
<connection cnid="cnAuthorisation" type="QUERYADO.ADOConnection" name="Authorisation" connectionstring="Provider=ADsDSOObject;Data Source=LDAP://EXONY;Mode=Read;Bind Flags=0" />
is in the next.
Is there one way of making my schema work so that i can write in xml code something along the lines of:
Code:
if filename=abc, then attributes here, else if filename=xyz then attributes here...... and so on
appologies if this makes no sense or if i'm talkin utter jibberish, but i'm a java programmer not an xml one. i've been doin xml for 3 days!
thanks in advance