Loading ...
Sorry, an error occurred while loading the content.

3372Re: storeDocument() - XMLMiddlewareException

Expand Messages
  • uwez2004
    Apr 2, 2004
      Hy, .. its me again

      the next error i get, is:
      " Element type not mapped as a class: lfn "

      but, as far as i understand Mapping-Files, my configuration is set
      correctly (as you can verify, bellow my dtd, map, action an xml File).

      thank you in advance
      Uwe

      ------------------------------------------
      physical schema in Database
      ===========================
      Table Name = "REPLTAB"
      Columms = "LFN" Primary Key
      "EXTID"
      "LAENGE"
      "AUFGABE"
      -----------------------------------------------
      repl.xml
      ========
      <repl>
      <repltab>
      <lfn>1</lfn>
      <extid>40</extid>
      <laenge>Vollzeit</laenge>
      <aufgabe>Maschienenbau</aufgabe>
      </repltab>
      <repltab>
      <lfn>2</lfn>
      <extid>41</extid>
      <laenge>Teilzeit</laenge>
      <aufgabe>Informatik</aufgabe>
      </repltab>
      </repl>
      -----------------------------------------------
      map.map
      ==========
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE XMLToDBMS SYSTEM "xmldbms2.dtd">
      <XMLToDBMS xmlns="http://www.xmlmiddleware.org/xmldbms/v2"
      Version="2.0">
      <Options>
      <SimpleDateFormat DefaultForTypes="TIMESTAMP" Pattern="yyyy-MM-dd
      HH:mm:ss.S"/>
      </Options>
      <Databases>
      <Database Name="Default">
      <Catalog>
      <Schema>
      <Table Name="REPLTAB">
      <Column DataType="VARCHAR" Length="10"
      Name="LFN"/>
      <Column DataType="VARCHAR" Length="10"
      Name="EXTID"/>
      <Column DataType="VARCHAR" Length="20"
      Name="LAENGE"/>
      <Column DataType="VARCHAR" Length="20"
      Name="AUFGABE"/>
      <PrimaryKey>
      <UseColumn Name="LFN"/>
      </PrimaryKey>
      </Table>
      </Schema>
      </Catalog>
      </Database>
      </Databases>
      <Maps>
      <ClassMap>
      <ElementType Name="repltab"/>
      <ToClassTable Name="REPLTAB"/>
      <PropertyMap>
      <ElementType Name="lfn"/>
      <ToColumn Name="LFN"/>
      </PropertyMap>
      <PropertyMap>
      <ElementType Name="extid"/>
      <ToColumn Name="EXTID"/>
      </PropertyMap>
      <PropertyMap>
      <ElementType Name="laenge"/>
      <ToColumn Name="LAENGE"/>
      </PropertyMap>
      <PropertyMap>
      <ElementType Name="aufgabe"/>
      <ToColumn Name="AUFGABE"/>
      </PropertyMap>
      </ClassMap>
      </Maps>
      -----------------------------------------------
      order1.act
      ==========
      <!DOCTYPE Actions SYSTEM "actions.dtd">
      <Actions Version="2.0"
      xmlns="http://www.xmlmiddleware.org/xmldbms/actions/v2">
      <DefaultAction>
      <Insert />
      </DefaultAction>
      <Action>
      <ElementType Name="lfn" />
      <UpdateOrInsert />
      </Action>
      <Action>
      <ElementType Name="extid" />
      <UpdateOrInsert />
      </Action>
      <Action>
      <ElementType Name="laenge" />
      <UpdateOrInsert />
      </Action>
      <Action>
      <ElementType Name="aufgabe" />
      <UpdateOrInsert />
      </Action>
      </Actions>
      -------------------------------------
      dtd.dtd
      =======
      <?xml version='1.0' encoding='UTF-8'?>
      <!ELEMENT aufgabe (#PCDATA)>
      <!ELEMENT laenge (#PCDATA)>
      <!ELEMENT extid (#PCDATA)>
      <!ELEMENT lfn (#PCDATA)>
      <!ELEMENT repltab (aufgabe|laenge|extid|lfn)*>
      <!ELEMENT repl (repltab)*>
      ------------------------------------
    • Show all 5 messages in this topic