[Date Prev][Date Next] [Chronological] [Thread] [Top]

XML Documents in LDAP



For a project we want to store XML documents in an LDAP server. To store
html is no problem. In html it's needed to use an cr because thereis for
example the <br> to go to the next line. XML does not have something like
this. Therefor another solution has to be found.

An XML-layout file looks like below (test.css):

KLASNAAM     {font-size: 16pt;color:
black;font-weight:bold;display:block;text-align:center}
KLAS     {display:block}
PERSOON     {display:block}
CIJFERS     {display:block}
SEMESTER     {color: black;display:block}
VAK     {font-size: 12pt;color: red;display:block}
TENTAMEN     {font-size: 10pt;color: blue}
HER     {font-size: 10pt;color: cyan}

Does anyone know a solution to put this file in the LDAP-directory structure

A xml file looks like below (test.xml):

<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/css" href="test.css"?>
<SCHOOL>
 <KLAS>
  <KLASNAAM> HI4 </KLASNAAM>
  <KLASGENOOT>
    <PERSOON>
     <NUMMER>ux010934</NUMMER>
     <NAAM>Frank Nijenhuis</NAAM>
    </PERSOON>
    <CIJFERS>
     <SEMESTER>Semester <NUM>1</NUM>
      <VAK>Geschiedenis <TENTAMEN> 4.5</TENTAMEN><HER> 5.3</HER></VAK>
     </SEMESTER>
    </CIJFERS>
  </KLASGENOOT>
  <KLASGENOOT>
   <PERSOON>
    <NUMMER>ux010583</NUMMER>
    <NAAM>Axel van Duijkeren</NAAM>
   </PERSOON>
   <CIJFERS>
    <SEMESTER>Semester <NUM>1</NUM>
     <VAK>Geschiedenis <TENTAMEN> 4.5</TENTAMEN><HER> 5.3</HER></VAK>
    </SEMESTER>
    <SEMESTER>Semester <NUM>2</NUM>
     <VAK>Engels <TENTAMEN> 1.0</TENTAMEN><HER> 5.1</HER></VAK>
     <VAK>Gymnastiek <TENTAMEN> 2.5</TENTAMEN><HER> 8.0</HER></VAK>
    </SEMESTER>
   </CIJFERS>
  </KLASGENOOT>
 </KLAS>
</SCHOOL>

So the problem is that these two files have to be inserted in an LDAP
stucture. LDAP doesn't take carriage returns, how can this problem be
solved???

In advanced thanx

Axel